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 449a195cdb..9d3307718a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 3a87245eb4..5c7c3f010a 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.30.2