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.2 2004/04/30 14:24:14 momjian Exp $
11 *-------------------------------------------------------------------------
18 static char tzdir[MAXPGPATH];
19 static int done_tzdir = 0;
20 char *pgwin32_TZDIR(void) {
26 StrNCpy(tzdir,PKGLIBDIR, MAXPGPATH);
28 if (GetModuleFileName(NULL,tzdir,MAXPGPATH) == 0)
32 canonicalize_path(tzdir);
33 if ((p = last_path_separator(tzdir)) == NULL)
38 strcat(tzdir,"/../timezone");