From 822412e5126f2d51f428997417085e5522a4a77d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Dec 2019 10:46:16 +0100 Subject: [PATCH] unistd: Fix compilation error in C++ mode on MSVC. * lib/unistd.in.h: Don't do include[_next] if the platform does not have . --- ChangeLog | 6 ++++++ lib/unistd.in.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -> -> -> -- 2.39.5