diff options
Diffstat (limited to 'src/Xsystem.c')
-rw-r--r-- | src/Xsystem.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/Xsystem.c b/src/Xsystem.c index 806633d9..55acacd7 100644 --- a/src/Xsystem.c +++ b/src/Xsystem.c @@ -1,4 +1,4 @@ -/* @Id: Xsystem.c 1.13 Thu, 06 May 2004 17:31:33 -0700 dickey @ +/* @Id: Xsystem.c 1.14 Wed, 30 Jun 2004 16:55:04 -0700 dickey @ * like system("cmd") but return with exit code of "cmd" * for Turbo-C/MS-C/LSI-C * This code is in the public domain. @@ -25,21 +25,14 @@ * */ #include <LYUtils.h> +#include <LYStrings.h> -#if 0 -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <fcntl.h> +#ifdef DOSPATH #include <io.h> -#include <process.h> -#ifndef __CYGWIN__ -#include <dos.h> -#endif +#else +extern char *mktemp(char *); #endif -#include <LYStrings.h> - #ifndef USECMDLINE #define USECMDLINE 0 #endif @@ -53,8 +46,6 @@ #define STR_MAX 512 /* MAX command line */ -extern char *mktemp(char *); - #define isk1(c) ((0x81 <= UCH(c) && UCH(c) <= 0x9F) || (0xE0 <= UCH(c) && UCH(c) <= 0xFC)) #define isq(c) ((c) == '"') #define isspc(c) ((c) == ' ' || (c) == '\t') |