diff options
author | Steve Hay <SteveHay@planit.com> | 2005-07-01 07:44:50 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-07-01 07:44:50 +0000 |
commit | a51a97d86a8e028ada154e7e70624ca9fe055d4c (patch) | |
tree | 0bed600bf1c1496dff5173b8449ed11ba0127df3 /win32 | |
parent | d8084ca508cc868d52c8d8d4fcfc637d4dbec9d0 (diff) | |
download | perl-a51a97d86a8e028ada154e7e70624ca9fe055d4c.tar.gz |
Silence some cast warnings from bcc32 on Win32
See the thread starting here for arguments:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-06/msg00994.html
p4raw-id: //depot/perl@25033
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 43c2d0b518..7423b0b8a2 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4064,9 +4064,17 @@ win32_execv(const char *cmdname, const char *const *argv) /* if this is a pseudo-forked child, we just want to spawn * the new program, and return */ if (w32_pseudo_id) +# ifdef __BORLANDC__ return spawnv(P_WAIT, cmdname, (char *const *)argv); +# else + return spawnv(P_WAIT, cmdname, argv); +# endif #endif +#ifdef __BORLANDC__ return execv(cmdname, (char *const *)argv); +#else + return execv(cmdname, argv); +#endif } DllExport int @@ -4086,7 +4094,11 @@ win32_execvp(const char *cmdname, const char *const *argv) return status; } #endif +#ifdef __BORLANDC__ return execvp(cmdname, (char *const *)argv); +#else + return execvp(cmdname, argv); +#endif } DllExport void |