Bug 727141 - Uglify the include of <stdint.h> to support building on case-insensitive file systems. rs=khuey over IRC
authorJeff Walden <jwalden@mit.edu>
Tue, 14 Feb 2012 12:18:21 -0800
changeset 86847 e5df0f4321adc4246d0e575b34c36b4c7826d7dd
parent 86846 1a7ced340f9bd9f736d93017e1a9f7d256f24497
child 86848 a5bd3f716d86363c88baf33f0d92409a55e4338a
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskhuey
bugs727141
milestone13.0a1
Bug 727141 - Uglify the include of <stdint.h> to support building on case-insensitive file systems. rs=khuey over IRC
mfbt/StdInt.h
--- a/mfbt/StdInt.h
+++ b/mfbt/StdInt.h
@@ -62,12 +62,16 @@
  *      <stdint.h>, #include our custom <stdint.h> reimplementation.
  *   3. Otherwise, #include the standard <stdint.h> provided by the compiler.
  */
 #if defined(MOZ_CUSTOM_STDINT_H)
 #  include MOZ_CUSTOM_STDINT_H
 #elif defined(_MSC_VER) && _MSC_VER < 1600
 #  include "mozilla/MSStdInt.h"
 #else
-#  include <stdint.h>
+   /*
+    * Don't include <stdint.h>, because on some case-insensitive systems . is
+    * searched for headers before the standard include location.  :-(
+    */
+#  include <sys/../stdint.h>
 #endif
 
 #endif  /* mozilla_StdInt_h_ */