1 /*-------------------------------------------------------------------------
4 * Timezone Library Integration Functions
6 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
9 * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.1 2004/04/30 04:09:23 momjian Exp $
11 *-------------------------------------------------------------------------
19 static char tzdir[MAXPGPATH];
20 static int done_tzdir = 0;
21 char *pgwin32_TZDIR(void) {
26 if (GetModuleFileName(NULL,tzdir,MAXPGPATH) == 0)
29 canonicalize_path(tzdir);
30 if ((p = last_path_separator(tzdir)) == NULL)
35 strcat(tzdir,"/../share/timezone");
41 #error pgwin32_TZDIR not implemented on non win32 yet!