|
6 | 6 | * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 |
| - * $PostgreSQL: pgsql/src/include/port.h,v 1.25 2004/04/19 17:42:59 momjian Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/include/port.h,v 1.26 2004/04/30 04:14:05 momjian Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -177,3 +177,37 @@ extern int pqGethostbyname(const char *name,
|
177 | 177 | #defineWIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
|
178 | 178 | #defineWTERMSIG(w) ((w) & 0x7f)
|
179 | 179 | #endif
|
| 180 | + |
| 181 | +/* |
| 182 | + * Internal timezone library |
| 183 | + */ |
| 184 | +#ifdefUSE_PGTZ |
| 185 | +#ifndefFRONTEND |
| 186 | +#undef localtime |
| 187 | +#undef gmtime |
| 188 | +#undef asctime |
| 189 | +#undef ctime |
| 190 | +#undef difftime |
| 191 | +#undef mktime |
| 192 | +#undef tzset |
| 193 | + |
| 194 | +#definelocaltime(timep) pg_localtime(timep) |
| 195 | +#definegmtime(timep) pg_gmtime(timep) |
| 196 | +#defineasctime(timep) pg_asctime(timep) |
| 197 | +#definectime(timep) pg_ctime(timep) |
| 198 | +#definedifftime(t1,t2) pg_difftime(t1,t2) |
| 199 | +#definemktime(tm) pg_mktime(tm) |
| 200 | +#definetzset pg_tzset |
| 201 | + |
| 202 | + |
| 203 | +externstructtm*pg_localtime(consttime_t*); |
| 204 | +externstructtm*gg_gmtime(consttime_t*); |
| 205 | +externchar*pg_asctime(conststructtm*); |
| 206 | +externchar*pg_ctime(consttime_t*); |
| 207 | +externdoublepg_difftime(consttime_t,consttime_t); |
| 208 | +externtime_tpg_mktime(structtm*); |
| 209 | +externvoidpg_tzset(void); |
| 210 | +externtime_tpg_timezone; |
| 211 | + |
| 212 | +#endif |
| 213 | +#endif |