mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
gmtime_r emulated by gmtime_s should return struct tm*; close #146
This commit is contained in:
+2
-2
@@ -28,8 +28,8 @@
|
||||
#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) ? (tp) : NULL)
|
||||
#define localtime_r(tp, tm) ((localtime_s((tm), (tp)) == 0) ? (tp) : NULL)
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user