diff options
| author | Shannen Saez <[email protected]> | 2012-09-10 17:12:38 +1000 |
|---|---|---|
| committer | Shannen Saez <[email protected]> | 2012-09-10 17:12:38 +1000 |
| commit | 151d75b4e0964250792774f4acf50f2443cf95bf (patch) | |
| tree | b1a7a85b25604e1d44ca58f9fdc29eef2ca9d61e /src/time.c | |
| parent | d416a5c3fe3682983cc365585aa6ac2b09763e4b (diff) | |
| download | mruby-151d75b4e0964250792774f4acf50f2443cf95bf.tar.gz mruby-151d75b4e0964250792774f4acf50f2443cf95bf.zip | |
Fixed Windows warning.
Compiling on Windows 7 from a Windows SDK 7 prompt with CMake.
`nmake all test` now works with the `tzset()` warning gone.
Diffstat (limited to 'src/time.c')
| -rw-r--r-- | src/time.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c index 3dd56c6a9..085c4f30f 100644 --- a/src/time.c +++ b/src/time.c @@ -28,13 +28,11 @@ #ifdef _WIN32 /* Win32 platform do not provide gmtime_r/localtime_r; emulate them using gmtime_s/localtime_s */ -#if _MVC_VER #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL) #define localtime_r(tp, tm) ((localtime_s((tm), (tp)) == 0) ? (tm) : NULL) #else #define NO_GMTIME_R #endif -#endif /* timegm(3) */ /* mktime() creates tm structure for localtime; timegm() is for UTF time */ |
