diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-07 09:49:45 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2002-06-07 09:49:45 +0000 |
commit | a82c3665042b80a0febcbffdf0577cd37de349ff (patch) | |
tree | 25ddb7621d275881c1cfa38e6ce0a2b1462270b8 /byterun/win32.c | |
parent | 143761a5142bf30a3321ec7b66bf2f4b2620ac30 (diff) |
Portage Mingw et revision du portage Win32/MSVC
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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 |