# | Line 9 | Line 9 | |
---|---|---|
9 | #include <time.h> | |
10 | #include <stdlib.h> | |
11 | ||
12 | + | extern time_t timegm(struct tm *tm); |
13 | + | |
14 | #ifdef _WIN32 | |
15 | < | char * |
15 | > | static char * |
16 | setGMT() | |
17 | { | |
18 | static time_t prevTZ; | |
# | Line 18 | Line 20 | setGMT() | |
20 | _timezone = 0; | |
21 | return (char *)&prevTZ; | |
22 | } | |
23 | < | void |
23 | > | static void |
24 | resetTZ(char *cp) | |
25 | { | |
26 | _timezone = *(time_t *)cp; | |
27 | } | |
28 | #else | |
29 | < | char * |
29 | > | static char * |
30 | setGMT() | |
31 | { | |
32 | char *tz = getenv("TZ"); | |
# | Line 32 | Line 34 | setGMT() | |
34 | tzset(); | |
35 | return tz; | |
36 | } | |
37 | < | void |
37 | > | static void |
38 | resetTZ(char *tz) | |
39 | { | |
40 | if (tz) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |