# HG changeset patch # User Bruno Haible # Date 1270289276 -7200 # Node ID 6b06dccb9db435e5600409c75d630d70526f2d1f # Parent f9a2da4bbba95c6917786a87e08ee2b332ffb051 stdlib: Avoid compilation failure of c-strtold on mingw. diff --git a/ChangeLog b/ChangeLog --- 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 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -67,10 +67,10 @@ }; #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