From 4a73eb5ab1552913b2831ec0bd978dccb95f7b5b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 30 Apr 2004 04:14:06 +0000 Subject: Minor adjustments to enable public-domain timezone library to be called from our code. --- src/include/c.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/c.h') diff --git a/src/include/c.h b/src/include/c.h index 325cfc217d..6d7f852ed5 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 -- cgit v1.2.3