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

@@ -512,17 +512,6 @@ static int canexecute __PARAM__((char *path, int isfun), (path, isfun)) __OTORP_
}
else if(stat(path,&statb) < 0)
{
#ifdef _WIN32
/* check for .exe suffix */
if(errno==ENOENT)
{
stakputs(".exe");
path = stakptr(PATH_OFFSET);
if(stat(path,&statb) < 0)
goto err;
}
else
#endif /* _WIN32 */
goto err;
}
errno = EPERM;

View File

@@ -617,11 +617,7 @@ __STDPP__directive pragma pp:ignore "string.h"
/* <unistd.h> */
#ifdef _WIN32
#include <unistd.h>
#else
#include <ast_unistd.h>
#endif
#include <ast_botch.h>
#ifndef STDIN_FILENO
@@ -696,8 +692,6 @@ extern __MANGLE__ char* ttyname __PROTO__((int));
extern __MANGLE__ int unlink __PROTO__((const char*));
extern __MANGLE__ ssize_t write __PROTO__((int, const __V_*, size_t));
#ifndef _WIN32
/*
* yes, we don't trust anyone's interpretation but our own
*/
@@ -716,8 +710,6 @@ extern __MANGLE__ long fpathconf __PROTO__((int, int));
extern __MANGLE__ long pathconf __PROTO__((const char*, int));
extern __MANGLE__ long sysconf __PROTO__((int));
#endif
#if defined(__STDPP__directive) && defined(__STDPP__ignore)
__STDPP__directive pragma pp:ignore "unistd.h"