]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Define __STDC_LIMIT_MACROS for C++ vs <stdint.h>
authorRoland McGrath <roland@redhat.com>
Mon, 26 Jan 2009 01:33:58 +0000 (17:33 -0800)
committerRoland McGrath <roland@redhat.com>
Mon, 26 Jan 2009 01:33:58 +0000 (17:33 -0800)
lib/ChangeLog
lib/eu-config.h

index 0699182621d13cb2571a4ae74bf1ccb95ef65a86..11ad4d44ccd7f4f0f4e4c388e21556c924c79faf 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-25  Roland McGrath  <roland@redhat.com>
+
+       * eu-config.h (__STDC_LIMIT_MACROS): Define it.
+
 2009-01-23  Roland McGrath  <roland@redhat.com>
 
        * eu-config.h: Add multiple inclusion protection.
index 32f501ae328500d82e0ea4db603f86a739f67180..5e809d99fddbd3972bb9923b0843bda54277a1bd 100644 (file)
@@ -182,5 +182,9 @@ asm (".section predict_data, \"aw\"; .previous\n"
 /* This macro is used by the tests conditionalize for standalone building.  */
 #define ELFUTILS_HEADER(name) <lib##name.h>
 
+/* C++ needs this for <stdint.h> to define UINT64_MAX et al.  */
+#ifndef __STDC_LIMIT_MACROS
+# define __STDC_LIMIT_MACROS
+#endif
 
 #endif /* eu-config.h */