Kouhei Sutou
null+****@clear*****
Mon Mar 30 16:00:23 JST 2015
Kouhei Sutou 2015-03-30 16:00:23 +0900 (Mon, 30 Mar 2015) New Revision: c88fce8973d834127814f0a3bd56f2998438b490 https://github.com/groonga/groonga/commit/c88fce8973d834127814f0a3bd56f2998438b490 Message: windows: fix a bug that crash on x86 [groonga-dev,03131] Reported by Atsushi Shinoda. Thanks!!! Modified files: lib/ctx.c Modified: lib/ctx.c (+5 -1) =================================================================== --- lib/ctx.c 2015-03-30 15:59:25 +0900 (f73572c) +++ lib/ctx.c 2015-03-30 16:00:23 +0900 (ab915d8) @@ -36,7 +36,11 @@ #endif /* HAVE_NETINET_IN_H */ #if defined(HAVE__LOCALTIME64_S) && defined(__GNUC__) -# define localtime_s(tm, time) _localtime64_s(tm, time) +# ifdef _WIN64 +# define localtime_s(tm, time) _localtime64_s(tm, time) +# else /* _WIN64 */ +# define localtime_s(tm, time) _localtime32_s(tm, time) +# endif /* _WIN64 */ #endif /* defined(HAVE__LOCALTIME64_S) && defined(__GNUC__) */ #define GRN_CTX_INITIALIZER(enc) \ -------------- next part -------------- HTML����������������������������... Download