Skip to content

Commit 2def476

Browse files
committed
Remove unused Win32 defines, convert them to typdefs, per suggestion
from Peter.
1 parent a79f819 commit 2def476

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/include/port/qnx4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
#undef HAVE_GETRUSAGE
99

10-
typedef u_short ushort;
11-
1210
extern int isnan(double dsrc);
1311
extern long random(void);
1412
extern void srandom(unsigned int seed);

src/include/port/win32.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.34 2004/09/27 23:24:40 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.35 2004/10/05 13:48:35 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -191,18 +191,12 @@ struct itimerval
191191
int setitimer(int which, const struct itimerval * value, struct itimerval * ovalue);
192192

193193

194-
/* FROM SRA */
195-
196194
/*
197195
* Supplement to <sys/types.h>.
198196
*/
199-
#define uid_t int
200-
#define gid_t int
201-
#define pid_t unsigned long
202-
#define ssize_t int
203-
#define mode_t int
204-
#define key_t long
205-
#define ushort unsigned short
197+
typedef int uid_t;
198+
typedef int gid_t;
199+
typdef long key_t;
206200

207201
/*
208202
* Supplement to <sys/stat.h>.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy