summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-10-02 21:31:59 (GMT)
committerBrad King <brad.king@kitware.com>2002-10-02 21:31:59 (GMT)
commit5ce73bdd14b41ae2605ecac363df259b5ecf69ae (patch)
tree8a3ccdc4752002aae15f6267763fe89e81381a93 /Source/cmStandardIncludes.h
parentcd8e26f14c2f94898a90714b2556d361a4d81ac8 (diff)
downloadCMake-5ce73bdd14b41ae2605ecac363df259b5ecf69ae.zip
CMake-5ce73bdd14b41ae2605ecac363df259b5ecf69ae.tar.gz
CMake-5ce73bdd14b41ae2605ecac363df259b5ecf69ae.tar.bz2
ENH: Added explicit declarations of some C functions that are hard to get from standard headers in como (www.comeaucomputing.com) strict mode.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index b1dd8ac..b0d391f 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -27,10 +27,6 @@
#include "cmConfigure.h"
#endif
-#if !defined(_WIN32) && defined(__COMO__)
-# define _BSD_SOURCE
-#endif
-
#ifdef _MSC_VER
#pragma warning ( disable : 4786 )
#pragma warning ( disable : 4503 )
@@ -70,6 +66,19 @@
// include the "c" string header
#include <string.h>
+#if !defined(_WIN32) && defined(__COMO__)
+// Hack for como strict mode to avoid defining _SVID_SOURCE or _BSD_SOURCE.
+extern "C"
+{
+extern FILE *popen (__const char *__command, __const char *__modes) __THROW;
+extern int pclose (FILE *__stream) __THROW;
+extern char *realpath (__const char *__restrict __name,
+ char *__restrict __resolved) __THROW;
+extern char *strdup (__const char *__s) __THROW;
+extern int putenv (char *__string) __THROW;
+}
+#endif
+
// if std:: is not supported, then just #define it away
#ifdef CMAKE_NO_STD_NAMESPACE
#define std