Kouhei Sutou
null+****@clear*****
Mon Jan 27 10:45:44 JST 2014
Kouhei Sutou 2014-01-27 10:45:44 +0900 (Mon, 27 Jan 2014) New Revision: 3d32bd5091e5e63d983aa974bcf4f9bb12a5073d https://github.com/groonga/groonga/commit/3d32bd5091e5e63d983aa974bcf4f9bb12a5073d Message: Use "!defined(__GNUC__)" instead of "defined(_MSC_VER)" Because fstat uses the condition. Modified files: lib/groonga_in.h Modified: lib/groonga_in.h (+2 -2) =================================================================== --- lib/groonga_in.h 2014-01-27 10:44:44 +0900 (e6b7a51) +++ lib/groonga_in.h 2014-01-27 10:45:44 +0900 (1c35618) @@ -122,9 +122,9 @@ #ifndef __GNUC__ # define snprintf(str, size, ...) _snprintf(str, size, __VA_ARGS__) #endif /* __GNUC__ */ -#if defined(_MSC_VER) && _MSC_VER < 1500 +#if !defined(__GNUC__) && _MSC_VER < 1500 # define vsnprintf(str, size, format, ap) _vsnprintf(str, size, format, ap) -#endif /* defined(_MSC_VER) && _MSC_VER < 1500 */ +#endif /* !defined(__GNUC__) && _MSC_VER < 1500 */ #define unlink(pathname) _unlink(pathname) #define lseek(fd, offset, whence) _lseek(fd, offset, whence) #define getpid() _getpid() -------------- next part -------------- HTML����������������������������... Download