Fix bug 683178 - Port bug 673556 to comm-central. rs=Standard8
authorPhilipp Kewisch <mozilla@kewis.ch>
Tue, 30 Aug 2011 18:05:43 +0200
changeset 9081 efc02fae47a97e40d1df62083ded745ec1653400
parent 9080 debf99a26bceda1ef61aa6a832f02ac647d2dcea
child 9082 e0953facfcfc30f945caa457665c6a5fe2f98875
push idunknown
push userunknown
push dateunknown
reviewersStandard8
bugs683178, 673556
Fix bug 683178 - Port bug 673556 to comm-central. rs=Standard8
configure.in
--- a/configure.in
+++ b/configure.in
@@ -7199,16 +7199,21 @@ fi
   sort confdefs.h | $FIXED_EGREP -v "$_EGREP_PATTERN" >> $_CONFIG_TMP
 
   if test "$?" != 0; then
     AC_MSG_ERROR([Error outputting config definitions])
   fi
 
   cat >> $_CONFIG_TMP <<\EOF
 
+/* The c99 defining the limit macros (UINT32_MAX for example), says:
+ * C++ implementations should define these macros only when __STDC_LIMIT_MACROS
+ * is defined before <stdint.h> is included. */
+#define __STDC_LIMIT_MACROS
+
 #endif /* _COMM_CONFIG_H_ */
 
 EOF
 
   # Only write comm-config.h when something changes (or it doesn't exist)
   if cmp -s $_CONFIG_TMP $_CONFIG_DEFS_H; then
     rm $_CONFIG_TMP
   else