Skip to content
Snippets Groups Projects
Commit 0897602c authored by Brad King's avatar Brad King
Browse files

ERR: Added forward declarations of system functions for como compiler.

parent 0bc254a4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment