Skip to content
Snippets Groups Projects
Commit 2def476d authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Remove unused Win32 defines, convert them to typdefs, per suggestion

from Peter.
parent a79f8195
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#undef HAVE_GETRUSAGE #undef HAVE_GETRUSAGE
typedef u_short ushort;
extern int isnan(double dsrc); extern int isnan(double dsrc);
extern long random(void); extern long random(void);
extern void srandom(unsigned int seed); extern void srandom(unsigned int seed);
/* $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 */ /* undefine and redefine after #include */
#undef mkdir #undef mkdir
...@@ -191,18 +191,12 @@ struct itimerval ...@@ -191,18 +191,12 @@ struct itimerval
int setitimer(int which, const struct itimerval * value, struct itimerval * ovalue); int setitimer(int which, const struct itimerval * value, struct itimerval * ovalue);
/* FROM SRA */
/* /*
* Supplement to <sys/types.h>. * Supplement to <sys/types.h>.
*/ */
#define uid_t int typedef int uid_t;
#define gid_t int typedef int gid_t;
#define pid_t unsigned long typdef long key_t;
#define ssize_t int
#define mode_t int
#define key_t long
#define ushort unsigned short
/* /*
* Supplement to <sys/stat.h>. * Supplement to <sys/stat.h>.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment