HAYASHI Kentaro
null+****@clear*****
Thu Oct 4 15:56:21 JST 2012
HAYASHI Kentaro 2012-10-04 15:56:21 +0900 (Thu, 04 Oct 2012) New Revision: 9aa6ce1d8cc9f4d0afba4fc8acb738fee5a788ca https://github.com/mroonga/mroonga/commit/9aa6ce1d8cc9f4d0afba4fc8acb738fee5a788ca Log: win32: fix not to define function as inline Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+7 -1) =================================================================== --- ha_mroonga.cpp 2012-10-04 15:43:05 +0900 (6ad5912) +++ ha_mroonga.cpp 2012-10-04 15:56:21 +0900 (5775797) @@ -44,7 +44,6 @@ # define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode)) #else # include <math.h> -inline double round(double x) { return (floor(x + 0.5)); } # include <direct.h> # define MRN_MKDIR(pathname, mode) _mkdir((pathname)) #endif @@ -139,6 +138,13 @@ static CHARSET_INFO *mrn_charset_koi8r = NULL; static int32 mrn_utc_diff_in_seconds = 0; +#ifdef WIN32 +static double round(double x) +{ + return (floor(x + 0.5)); +} +#endif + static void mrn_init_encoding_map() { CHARSET_INFO **cs; -------------- next part -------------- HTML����������������������������...Download