From: Bruno Haible Date: Wed, 11 Dec 2019 09:46:16 +0000 (+0100) Subject: unistd: Fix compilation error in C++ mode on MSVC. X-Git-Tag: v1.0~4530 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=822412e5126f2d51f428997417085e5522a4a77d;p=gnulib.git unistd: Fix compilation error in C++ mode on MSVC. * lib/unistd.in.h: Don't do include[_next] if the platform does not have . --- diff --git a/ChangeLog b/ChangeLog index ef6280b014..efa548ae8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-12-11 Bruno Haible + + unistd: Fix compilation error in C++ mode on MSVC. + * lib/unistd.in.h: Don't do include[_next] if the platform + does not have . + 2019-12-11 Bruno Haible locale: Fix compilation error in C++ mode on MSVC. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 28ab704c3b..269318eb73 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -21,7 +21,7 @@ #endif @PRAGMA_COLUMNS@ -#ifdef _GL_INCLUDING_UNISTD_H +#if @HAVE_UNISTD_H@ && defined _GL_INCLUDING_UNISTD_H /* Special invocation convention: - On Mac OS X 10.3.9 we have a sequence of nested includes -> -> ->