mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Rename function to be less win32 specific.
This commit is contained in:
parent
1a273556a3
commit
0a2b9f9cde
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.3 2004/04/30 20:23:28 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.4 2004/05/01 01:34:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -17,8 +17,11 @@
|
||||
|
||||
static char tzdir[MAXPGPATH];
|
||||
static int done_tzdir = 0;
|
||||
char *pgwin32_TZDIR(void) {
|
||||
char *
|
||||
pg_TZDIR(void)
|
||||
{
|
||||
char *p;
|
||||
|
||||
if (done_tzdir)
|
||||
return tzdir;
|
||||
|
||||
@ -30,12 +33,15 @@ char *pgwin32_TZDIR(void) {
|
||||
#endif
|
||||
|
||||
canonicalize_path(tzdir);
|
||||
#if 0
|
||||
if ((p = last_path_separator(tzdir)) == NULL)
|
||||
return NULL;
|
||||
else
|
||||
*p = '\0';
|
||||
#endif
|
||||
|
||||
strcat(tzdir, "/timezone");
|
||||
puts(tzdir);
|
||||
|
||||
done_tzdir = 1;
|
||||
return tzdir;
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
|
||||
#define NOID
|
||||
#define TZDIR pgwin32_TZDIR()
|
||||
#define TZDIR pg_TZDIR()
|
||||
|
||||
char *pgwin32_TZDIR(void);
|
||||
char *pg_TZDIR(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user