From 2def476de3f3fdb59c3a11de2c41ed14dab9fc23 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 5 Oct 2004 13:48:35 +0000 Subject: [PATCH] Remove unused Win32 defines, convert them to typdefs, per suggestion from Peter. --- src/include/port/qnx4.h | 2 -- src/include/port/win32.h | 14 ++++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/include/port/qnx4.h b/src/include/port/qnx4.h index 94ae9a87c1..d47f6d97d5 100644 --- a/src/include/port/qnx4.h +++ b/src/include/port/qnx4.h @@ -7,8 +7,6 @@ #undef HAVE_GETRUSAGE -typedef u_short ushort; - extern int isnan(double dsrc); extern long random(void); extern void srandom(unsigned int seed); diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 7c85043e70..4b04e09257 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.34 2004/09/27 23:24:40 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.35 2004/10/05 13:48:35 momjian Exp $ */ /* undefine and redefine after #include */ #undef mkdir @@ -191,18 +191,12 @@ struct itimerval int setitimer(int which, const struct itimerval * value, struct itimerval * ovalue); -/* FROM SRA */ - /* * Supplement to . */ -#define uid_t int -#define gid_t int -#define pid_t unsigned long -#define ssize_t int -#define mode_t int -#define key_t long -#define ushort unsigned short +typedef int uid_t; +typedef int gid_t; +typdef long key_t; /* * Supplement to .