diff options
author | Brad King <brad.king@kitware.com> | 2003-05-13 12:38:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-05-13 12:38:49 (GMT) |
commit | 0c641ebc327d5db55744c6ba74402f17769df609 (patch) | |
tree | 704df7e34357997d6324e25e032ff87d7f5af6ff /Source | |
parent | a675af39a70e4cf2a1ffcb37142030929e51087d (diff) | |
download | CMake-0c641ebc327d5db55744c6ba74402f17769df609.zip CMake-0c641ebc327d5db55744c6ba74402f17769df609.tar.gz CMake-0c641ebc327d5db55744c6ba74402f17769df609.tar.bz2 |
ERR: Added forward declarations of system functions for como compiler.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 50215ee..8204f67 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -77,6 +77,18 @@ inline int Chdir(const char* dir) } #endif +#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 /* Implement floattime() for various platforms */ // Taken from Python 2.1.3 |