From b706b4cba4181e2eb0df7e394a8cb2abc0d4cd11 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Thu, 17 May 2012 02:39:28 +0900 Subject: gmtime_r emulated by gmtime_s should return struct tm*; close #146 --- src/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/time.c') diff --git a/src/time.c b/src/time.c index 5e75152e6..b0a74d0d1 100644 --- a/src/time.c +++ b/src/time.c @@ -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 -- cgit v1.2.3