summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-09-10 06:11:30 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-09-10 06:11:30 -0700
commitc999216aa8ac3d7da4e710545ac6377cdf1e9824 (patch)
tree77fffca9e52580bc4afd406e7c9d107fe1773ee4 /src
parente49224284d9e3ddb3499c6f4a4f36a2d5c9f2af4 (diff)
parent151d75b4e0964250792774f4acf50f2443cf95bf (diff)
downloadmruby-c999216aa8ac3d7da4e710545ac6377cdf1e9824.tar.gz
mruby-c999216aa8ac3d7da4e710545ac6377cdf1e9824.zip
Merge pull request #459 from shancat/warning_fix
Fixed Windows warning.
Diffstat (limited to 'src')
-rw-r--r--src/time.c2
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 */