1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +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

@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.8 1997/02/09 04:50:25 scrappy Exp $
* $Id: c.h,v 1.9 1997/02/14 04:18:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -742,19 +742,9 @@ extern char *form(char *fmt, ...);
#endif
/* These are for things that are one way on Unix and another on NT */
#ifndef WIN32
#define NULL_DEV "/dev/null"
#define COPY_CMD "cp"
#define SEP_CHAR '/'
#else
#define NULL_DEV "NUL"
#define COPY_CMD "copy"
#define SEP_CHAR '\\'
#endif /* WIN32 */
#if defined(WIN32)
#include "port/win32/nt.h"
#endif /* WIN32 */
/* ----------------
* end of c.h

View File

@@ -6,19 +6,13 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fs.h,v 1.2 1996/11/06 10:30:02 scrappy Exp $
* $Id: libpq-fs.h,v 1.3 1997/02/14 04:18:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LIBPQ_FS_H
#define LIBPQ_FS_H
#ifndef WIN32
#endif /* WIN32 */
#ifndef SEEK_SET
#endif /* SEEK_SET */
/* UNIX compatibility junk. This should be in all systems' include files,
but this is not always the case. */

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fd.h,v 1.5 1996/11/08 06:02:12 momjian Exp $
* $Id: fd.h,v 1.6 1997/02/14 04:18:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -43,11 +43,6 @@
/*
* FileSeek uses the standard UNIX lseek(2) flags.
*/
#ifndef WIN32
#else
#ifndef SEEK_SET
#endif /* SEEK_SET */
#endif /* WIN32 */
typedef char *FileName;

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: proc.h,v 1.3 1996/11/05 06:11:03 scrappy Exp $
* $Id: proc.h,v 1.4 1997/02/14 04:18:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -15,13 +15,6 @@
#include <storage/lock.h>
#ifndef WIN32
#else
/* This is because WIN32 already defines PROC */
#define PROC PGL_PROC
#endif /* WIN32 */
typedef struct {
int sleeplock;
int semNum;

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dynamic_loader.h,v 1.4 1996/12/28 02:12:51 momjian Exp $
* $Id: dynamic_loader.h,v 1.5 1997/02/14 04:18:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -29,13 +29,8 @@
typedef struct df_files {
char filename[MAXPATHLEN]; /* Full pathname of file */
#ifdef WIN32
_dev_t device; /* Device file is on */
_ino_t inode; /* Inode number of file */
#else
dev_t device; /* Device file is on */
ino_t inode; /* Inode number of file */
#endif /* WIN32 */
void *handle; /* a handle for pg_dl* functions */
struct df_files *next;
} DynamicFileList;