Skip to content

Commit

Permalink
minor: oops wrong nesting for ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Dec 1, 2009
1 parent 862c0a6 commit 9f18a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymongo/time_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
#define GMTIME_INVERSE(time_struct) _mkgmtime64(time_struct)
#else
#define GMTIME_INVERSE(time_struct) mkgmtime((time_struct))
#endif
#define GMTIME(timeinfo, seconds) gmtime_s((timeinfo), (seconds))
#define LOCALTIME(timeinfo, seconds) localtime_s((timeinfo), (seconds))
#endif
#else
#define GMTIME_INVERSE(time_struct) timegm((time_struct))
#define GMTIME(timeinfo, seconds) gmtime_r((seconds), (timeinfo)), 0
#define LOCALTIME(timeinfo, seconds) localtime_r((seconds), (timeinfo)), 0
Expand Down

0 comments on commit 9f18a4e

Please sign in to comment.