Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0a2b9f9c
Commit
0a2b9f9c
authored
May 01, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function to be less win32 specific.
parent
1a273556
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
src/timezone/pgtz.c
src/timezone/pgtz.c
+16
-10
src/timezone/pgtz.h
src/timezone/pgtz.h
+2
-2
No files found.
src/timezone/pgtz.c
View file @
0a2b9f9c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* 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,26 +17,32 @@
...
@@ -17,26 +17,32 @@
static
char
tzdir
[
MAXPGPATH
];
static
char
tzdir
[
MAXPGPATH
];
static
int
done_tzdir
=
0
;
static
int
done_tzdir
=
0
;
char
*
pgwin32_TZDIR
(
void
)
{
char
*
pg_TZDIR
(
void
)
{
char
*
p
;
char
*
p
;
if
(
done_tzdir
)
if
(
done_tzdir
)
return
tzdir
;
return
tzdir
;
#ifndef WIN32
#ifndef WIN32
StrNCpy
(
tzdir
,
PGDATADIR
,
MAXPGPATH
);
StrNCpy
(
tzdir
,
PGDATADIR
,
MAXPGPATH
);
#else
#else
if
(
GetModuleFileName
(
NULL
,
tzdir
,
MAXPGPATH
)
==
0
)
if
(
GetModuleFileName
(
NULL
,
tzdir
,
MAXPGPATH
)
==
0
)
return
NULL
;
return
NULL
;
#endif
#endif
canonicalize_path
(
tzdir
);
canonicalize_path
(
tzdir
);
#if 0
if ((p = last_path_separator(tzdir)) == NULL)
if ((p = last_path_separator(tzdir)) == NULL)
return NULL;
return NULL;
else
else
*p = '\0';
*p = '\0';
#endif
strcat
(
tzdir
,
"/timezone"
);
strcat
(
tzdir
,
"/timezone"
);
puts
(
tzdir
);
done_tzdir
=
1
;
done_tzdir
=
1
;
return
tzdir
;
return
tzdir
;
}
}
src/timezone/pgtz.h
View file @
0a2b9f9c
...
@@ -6,6 +6,6 @@
...
@@ -6,6 +6,6 @@
#define NOID
#define NOID
#define TZDIR pg
win32
_TZDIR()
#define TZDIR pg_TZDIR()
char
*
pgwin32
_TZDIR
(
void
);
char
*
pg
_TZDIR
(
void
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment