From: Paul Eggert Date: Thu, 15 Dec 2011 19:48:25 +0000 (-0800) Subject: stdint: don't assume C++11 when compiling with g++ X-Git-Tag: v0.1~1358 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=501af6ba6cbdb199856d2a12f8a1ee754e7bd2ae;p=gnulib.git stdint: don't assume C++11 when compiling with g++ Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in . * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it work also in C++ before C++11, as that improperly inhibits generating a substitute stdint.h for that case. --- diff --git a/ChangeLog b/ChangeLog index 58146e44a..361362bd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2011-12-15 Paul Eggert + stdint: don't assume C++11 when compiling with g++ + Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in + . + * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it + work also in C++ before C++11, as that improperly inhibits + generating a substitute stdint.h for that case. + +2011-12-15 Paul Eggert + alloca: protect comment from gnulib-tool * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so that gnulib-tool doesn't think it's a license, and munge it to diff --git a/m4/stdint.m4 b/m4/stdint.m4 index cfad016f9..cc3866b3d 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 42 +# stdint.m4 serial 43 dnl Copyright (C) 2001-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -69,8 +69,6 @@ AC_DEFUN_ONCE([gl_STDINT_H], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ before C++11 */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ before C++11 */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */