summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/c-std.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/c-std.h')
-rw-r--r--Build/source/texk/kpathsea/c-std.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/c-std.h b/Build/source/texk/kpathsea/c-std.h
index 980c115901f..40e0ce78bd0 100644
--- a/Build/source/texk/kpathsea/c-std.h
+++ b/Build/source/texk/kpathsea/c-std.h
@@ -87,12 +87,12 @@ extern ALLOC_RETURN_TYPE *calloc (), *malloc (), *realloc ();
#include <unixlib.h>
#include <unixio.h>
#else
-#ifndef WIN32
+#if !defined (WIN32) && !defined (__cplusplus)
/* `popen' and `pclose' are part of POSIX.2, not POSIX.1. So
STDC_HEADERS isn't enough. */
extern FILE *popen ();
extern int pclose ();
-#endif /* not WIN32 */
+#endif /* not WIN32 && not __cplusplus */
#endif /* not VMS */
#endif /* not KPATHSEA_C_STD_H */