diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-04-30 04:14:06 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-04-30 04:14:06 +0000 |
commit | 4a73eb5ab1552913b2831ec0bd978dccb95f7b5b (patch) | |
tree | 7e75a59a26a263012d47bc23010919b9e1bf830f /src/include/c.h | |
parent | d248a67af1d849438e146bccd46adb1eb0a9f3b5 (diff) |
Minor adjustments to enable public-domain timezone library to be called
from our code.
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 325cfc217d0..6d7f852ed5f 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.160 2004/03/10 21:12:46 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.161 2004/04/30 04:14:05 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -310,12 +310,16 @@ typedef unsigned long int uint64; #endif /* Global variable holding time zone information. */ +#ifdef USE_PGTZ +#define TIMEZONE_GLOBAL pg_timezone +#else #ifndef HAVE_UNDERSCORE_TIMEZONE #define TIMEZONE_GLOBAL timezone #else #define TIMEZONE_GLOBAL _timezone #define tzname _tzname /* should be in time.h? */ #endif +#endif /* sig_atomic_t is required by ANSI C, but may be missing on old platforms */ #ifndef HAVE_SIG_ATOMIC_T |