From 564c0b8fe3dab3ec5bd5d2cb47133435853b15c5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Apr 2010 12:07:56 +0200 Subject: [PATCH] stdlib: Avoid compilation failure of c-strtold on mingw. --- ChangeLog | 5 +++++ lib/stdlib.in.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 449a195cd..9d3307718 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-04-03 Bruno Haible + stdlib: Avoid compilation failure of c-strtold on mingw. + * lib/stdlib.in.h: Don't include on native Windows systems. + +2010-04-03 Bruno Haible + locale: Make C++ tests work on Cygwin and mingw. * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib cannot provide the function. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 3a87245eb..5c7c3f010 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -67,10 +67,10 @@ struct random_data }; #endif -#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ +#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) /* On MacOS X 10.3, only declares mkstemp. */ /* On Cygwin 1.7.1, only declares getsubopt. */ -/* But avoid namespace pollution on glibc systems. */ +/* But avoid namespace pollution on glibc systems and native Windows. */ # include #endif -- 2.11.0