diff options
Diffstat (limited to 'byterun/win32.c')
-rw-r--r-- | byterun/win32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/byterun/win32.c b/byterun/win32.c index 3320a4712..47445027a 100644 --- a/byterun/win32.c +++ b/byterun/win32.c @@ -306,6 +306,12 @@ CAMLexport void expand_command_line(int * argcp, char *** argvp) /* Wrapper around "system" for Win32. Create a diversion file if command line is too long. */ +#ifdef __MINGW32__ +int win32_system(char * cmdline) +{ + return system(cmdline); +} +#else int win32_system(char * cmdline) { #define MAX_CMD_LENGTH 256 @@ -342,6 +348,7 @@ int win32_system(char * cmdline) return retcode; } } +#endif /* Wrapper around "getenv" for Win32. Look up resources if environment variable is not set. Notice that the result is a pointer to static |