#include "common.h"
#include <ctype.h>
-#ifdef __BORLANDC__
+#if NATIVE_WIN32
#include <process.h>
#else
#include "spawn.h"
int my_system (const char *cmd, char **cmd_argv)
{
char *dir, *got= NULL; int i= 0;
- #ifdef __BORLANDC__
- char *r;
- #endif
while (!got && try_dir[i])
{
strcat(dir, "/");
strcat(dir, cmd);
- #ifdef __BORLANDC__
+#if NATIVE_WIN32
strcat(dir, ".exe");
/* Mung slashes into backslashes to keep WIndoze happy. */
- r = dir;
-
- while (*r)
- {
- if (*r == '/')
- {
- *r = '\\';
- }
- r++;
- }
- #endif
+ {
+ char *r;
+ r = dir;
+
+ while (*r)
+ {
+ if (*r == '/')
+ {
+ *r = '\\';
+ }
+ r++;
+ }
+ }
+#endif
if (access(dir, X_OK) == 0)
{