1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Remove WIN32 defines. They never worked.

This commit is contained in:
Bruce Momjian
1997-02-14 04:19:07 +00:00
parent aaaba5a048
commit 31c8e94b34
26 changed files with 39 additions and 386 deletions

View File

@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.14 1997/01/27 00:09:43 scrappy Exp $
* $Id: fd.c,v 1.15 1997/02/14 04:16:26 momjian Exp $
*
* NOTES:
*
@ -134,13 +134,8 @@ static int nfile = 0;
* that we can open it and find out if we really have any descriptors
* available or not.
*/
#ifndef WIN32
static char *Nulldev = "/dev/null";
static char Sep_char = '/';
#else
static char *Nulldev = "NUL";
static char Sep_char = '\\';
#endif /* WIN32 */
/*
* Private Routines
@ -471,12 +466,7 @@ filepath(char *filename)
char basename[16];
int len;
#ifndef WIN32
if (*filename != Sep_char) {
#else
if (!(filename[1] == ':' && filename[2] == Sep_char)) {
#endif /* WIN32 */
/* Either /base/ or \base\ */
sprintf(basename, "%cbase%c", Sep_char, Sep_char);
@ -576,9 +566,6 @@ fileNameOpenFile(FileName fileName,
close(tmpfd);
}
#ifdef WIN32
fileFlags |= _O_BINARY;
#endif /* WIN32 */
vfdP->fd = open(fileName,fileFlags,fileMode);
vfdP->fdstate = 0x0;