Bug 1520103 - Added missing includes in nsNativeCharsetUtils.h - r=froydnj
authorGerald Squelart <gsquelart@mozilla.com>
Tue, 05 Feb 2019 00:01:58 +0000
changeset 457709 8ec4da862bdcb832acac3beb6d7c496b27e01c53
parent 457708 33b3cd76b2062083e9ef266aed6b701bdca16b53
child 457710 58654f30db8e02f1776a1f3b5b158f206c35628e
push id77717
push usergsquelart@mozilla.com
push dateFri, 08 Feb 2019 02:52:48 +0000
treeherderautoland@58654f30db8e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1520103
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1520103 - Added missing includes in nsNativeCharsetUtils.h - r=froydnj Found when forcing a non-unified build of the Gecko Profiler: - "nsError.h" needed to define `nsresult`. - "nsStringFwd.h" needed to declare `nsAString` and `nsACString`. Differential Revision: https://phabricator.services.mozilla.com/D18621
xpcom/io/nsNativeCharsetUtils.h
--- a/xpcom/io/nsNativeCharsetUtils.h
+++ b/xpcom/io/nsNativeCharsetUtils.h
@@ -18,16 +18,19 @@
  *    designed or tested for general encoding converter use.                 *
  *                                                                           *
  *    On Windows, these functions convert to and from the system's legacy    *
  *    code page, which cannot represent all of Unicode. Elsewhere, these     *
  *    convert to and from UTF-8.                                             *
  *                                                                           *
 \*****************************************************************************/
 
+#include "nsError.h"
+#include "nsStringFwd.h"
+
 /**
  * thread-safe conversion routines that do not depend on uconv libraries.
  */
 nsresult NS_CopyNativeToUnicode(const nsACString& aInput, nsAString& aOutput);
 nsresult NS_CopyUnicodeToNative(const nsAString& aInput, nsACString& aOutput);
 
 /*
  * This function indicates whether the character encoding used in the file