|
12 | 12 | * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
13 | 13 | * Portions Copyright (c) 1994, Regents of the University of California
|
14 | 14 | *
|
15 |
| - * $Id: c.h,v 1.137 2003/04/06 22:45:23 petere Exp $ |
| 15 | + * $Id: c.h,v 1.138 2003/04/18 01:03:42 momjian Exp $ |
16 | 16 | *
|
17 | 17 | *-------------------------------------------------------------------------
|
18 | 18 | */
|
|
51 | 51 | */
|
52 | 52 |
|
53 | 53 | #include "pg_config.h"
|
54 |
| -#include "pg_config_manual.h" |
| 54 | +#include "pg_config_manual.h" /* must be after pg_config.h */ |
55 | 55 | #include "pg_config_os.h"
|
56 | 56 | #include "postgres_ext.h"
|
57 | 57 |
|
|
65 | 65 | #endif
|
66 | 66 | #include <sys/types.h>
|
67 | 67 |
|
68 |
| -#ifdef __CYGWIN__ |
69 | 68 | #include <errno.h>
|
70 | 69 | #include <sys/fcntl.h> /* ensure O_BINARY is available */
|
71 |
| -#endif |
72 | 70 | #ifdef HAVE_SUPPORTDEFS_H
|
73 | 71 | #include <SupportDefs.h>
|
74 | 72 | #endif
|
@@ -321,6 +319,14 @@ typedef unsigned long int uint64;
|
321 | 319 | #define HAVE_INT64_TIMESTAMP
|
322 | 320 | #endif
|
323 | 321 |
|
| 322 | +/* Global variable holding time zone information. */ |
| 323 | +#ifndef HAVE_UNDERSCORE_TIMEZONE |
| 324 | +#define TIMEZONE_GLOBAL timezone |
| 325 | +#else |
| 326 | +#define TIMEZONE_GLOBAL _timezone |
| 327 | +#define tzname _tzname /* should be in time.h? */ |
| 328 | +#endif |
| 329 | + |
324 | 330 | /* sig_atomic_t is required by ANSI C, but may be missing on old platforms */
|
325 | 331 | #ifndef HAVE_SIG_ATOMIC_T
|
326 | 332 | typedef int sig_atomic_t;
|
@@ -680,7 +686,7 @@ typedef NameData *Name;
|
680 | 686 | * ----------------------------------------------------------------
|
681 | 687 | */
|
682 | 688 |
|
683 |
| -#ifdef __CYGWIN__ |
| 689 | +#if defined(__CYGWIN__) || defined(WIN32) |
684 | 690 | #define PG_BINARY O_BINARY
|
685 | 691 | #define PG_BINARY_R "rb"
|
686 | 692 | #define PG_BINARY_W "wb"
|
|
0 commit comments