From: Roland McGrath Date: Mon, 26 Jan 2009 01:33:58 +0000 (-0800) Subject: Define __STDC_LIMIT_MACROS for C++ vs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1cba339c428f54b86f4df000b13e17392a51932;p=thirdparty%2Felfutils.git Define __STDC_LIMIT_MACROS for C++ vs --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 069918262..11ad4d44c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2009-01-25 Roland McGrath + + * eu-config.h (__STDC_LIMIT_MACROS): Define it. + 2009-01-23 Roland McGrath * eu-config.h: Add multiple inclusion protection. diff --git a/lib/eu-config.h b/lib/eu-config.h index 32f501ae3..5e809d99f 100644 --- a/lib/eu-config.h +++ b/lib/eu-config.h @@ -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) +/* C++ needs this for to define UINT64_MAX et al. */ +#ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS +#endif #endif /* eu-config.h */