Kouhei Sutou
null+****@clear*****
Mon Mar 30 16:13:01 JST 2015
Kouhei Sutou 2015-03-30 16:13:01 +0900 (Mon, 30 Mar 2015) New Revision: ffa451c9cbcb9da67526a6a8986461269566efcb https://github.com/groonga/groonga/commit/ffa451c9cbcb9da67526a6a8986461269566efcb Message: windows: fix a bug that crash on x86 [groonga-dev,03131] Reported by Atsushi Shinoda. Thanks!!! Modified files: lib/str.c Modified: lib/str.c (+5 -1) =================================================================== --- lib/str.c 2015-03-30 16:00:23 +0900 (00e4418) +++ lib/str.c 2015-03-30 16:13:01 +0900 (5945400) @@ -28,7 +28,11 @@ #include <math.h> #if defined(HAVE__GMTIME64_S) && defined(__GNUC__) -# define gmtime_s(tm, time) _gmtime64_s(tm, time) +# ifdef _WIN64 +# define gmtime_s(tm, time) _gmtime64_s(tm, time) +# else /* _WIN64 */ +# define gmtime_s(tm, time) _gmtime32_s(tm, time) +# endif /* _WIN64 */ #endif /* defined(HAVE__GMTIME64_S) && defined(__GNUC__) */ /* For Visual C++ 2010. Drop the code when we drop Visual C++ 2010 support. */ -------------- next part -------------- HTML����������������������������... Download