Bug 1611536 - Add stdint.h include for fixed-width integer types r=Ehsan
authorMichael Forney <mforney@mforney.org>
Sat, 25 Jan 2020 00:40:51 +0000 (2020-01-25)
changeset 511752 1acc873aa118398b449859f0a67b8993f9776cc2
parent 511751 c930febec76e00c3dd61d1826d9696cce37cd095
child 511753 f706b0ac9227e7028988664bb1b8627ad371b829
push id37054
push userbtara@mozilla.com
push dateSat, 25 Jan 2020 09:45:27 +0000 (2020-01-25)
treeherdermozilla-central@f7f534f08b48 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1611536
milestone74.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 1611536 - Add stdint.h include for fixed-width integer types r=Ehsan musl libc does not define these types through the other headers included by this file, which causes errors when building RemoteUtils.cpp (which indirectly includes nsCharTraits.h): error: unknown type name 'int32_t' Differential Revision: https://phabricator.services.mozilla.com/D61040
xpcom/string/nsCharTraits.h
--- a/xpcom/string/nsCharTraits.h
+++ b/xpcom/string/nsCharTraits.h
@@ -3,16 +3,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef nsCharTraits_h___
 #define nsCharTraits_h___
 
 #include <ctype.h>   // for |EOF|, |WEOF|
+#include <stdint.h>  // for |uint32_t|
 #include <string.h>  // for |memcpy|, et al
 #include "mozilla/MemoryChecking.h"
 
 // This file may be used (through nsUTF8Utils.h) from non-XPCOM code, in
 // particular the standalone software updater. In that case stub out
 // the macros provided by nsDebug.h which are only usable when linking XPCOM
 
 #ifdef NS_NO_XPCOM