ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/timegm.c
(Generate patch)

Comparing ray/src/common/timegm.c (file contents):
Revision 2.1 by greg, Thu May 27 19:32:12 2010 UTC vs.
Revision 2.2 by greg, Wed Jun 2 15:58:30 2010 UTC

# 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines