Remove old windows support

This commit is contained in:
chase
2018-08-18 15:57:09 -05:00
committed by Jon Trulson
parent 1610ff3415
commit d12ad886c1
21 changed files with 14 additions and 932 deletions

View File

@@ -134,7 +134,7 @@ catch (sig)
fatalerr ("got signal %d\n", sig);
}
#if defined(USG) || (defined(i386) && defined(SYSV)) || defined(WIN32)
#if defined(USG) || (defined(i386) && defined(SYSV))
#define USGISH
#endif
@@ -661,15 +661,8 @@ redirect(line, makefile)
fatalerr("cannot open \"%s\"\n", makefile);
snprintf(backup, BUFSIZ, "%s.bak", makefile);
unlink(backup);
#ifdef WIN32
fclose(fdin);
#endif
if (rename(makefile, backup) < 0)
fatalerr("cannot rename %s to %s\n", makefile, backup);
#ifdef WIN32
if ((fdin = fopen(backup, "r")) == NULL)
fatalerr("cannot open \"%s\"\n", backup);
#endif
if ((fdout = freopen(makefile, "w", stdout)) == NULL)
fatalerr("cannot open \"%s\"\n", backup);
len = strlen(line);