Mercurial > hg > octave-lojdl > gnulib-hg
changeset 13114:6b06dccb9db4
stdlib: Avoid compilation failure of c-strtold on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Apr 2010 12:07:56 +0200 |
parents | f9a2da4bbba9 |
children | 8a2f408d1213 |
files | ChangeLog lib/stdlib.in.h |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-03 Bruno Haible <bruno@clisp.org> + + stdlib: Avoid compilation failure of c-strtold on mingw. + * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems. + 2010-04-03 Bruno Haible <bruno@clisp.org> locale: Make C++ tests work on Cygwin and mingw.
--- 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 <unistd.h> declares mkstemp. */ /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt. */ -/* But avoid namespace pollution on glibc systems. */ +/* But avoid namespace pollution on glibc systems and native Windows. */ # include <unistd.h> #endif