From: Eric Blake Date: Fri, 16 Apr 2010 20:11:08 +0000 (-0600) Subject: stdint: allow test to pass with C++ X-Git-Tag: v0.1~4249 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=fb4c917f856c580b7bd78779b5f8501918fe1690;p=gnulib.git stdint: allow test to pass with C++ __STDC_LIMIT_MACROS is only half the battle. * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index a86e30592..2a3f017de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-04-16 Eric Blake + stdint: allow test to pass with C++ + * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc. + getopt: allow compilation with C++ * lib/getopt_int.h (__ordering): Hoist enum declaration outside struct. diff --git a/tests/test-stdint.c b/tests/test-stdint.c index 9cec2e2f8..d64057a25 100644 --- a/tests/test-stdint.c +++ b/tests/test-stdint.c @@ -22,6 +22,7 @@ #define DO_PEDANTIC 0 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* likewise */ #include #include "verify.h"