Kouhei Sutou
null+****@clear*****
Thu Oct 4 17:12:26 JST 2012
Kouhei Sutou 2012-10-04 17:12:26 +0900 (Thu, 04 Oct 2012) New Revision: 562c0dcc41adcb8ba7d167043a5b5f34ecddbcca https://github.com/mroonga/mroonga/commit/562c0dcc41adcb8ba7d167043a5b5f34ecddbcca Log: Don't use #ifndef ... #else Double negation is not readable. Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+5 -5) =================================================================== --- ha_mroonga.cpp 2012-10-04 15:56:21 +0900 (5775797) +++ ha_mroonga.cpp 2012-10-04 17:12:26 +0900 (86c8ae3) @@ -38,14 +38,14 @@ #include <sys/types.h> #include <sys/stat.h> -#ifndef WIN32 -# include <dirent.h> -# include <unistd.h> -# define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode)) -#else +#ifdef WIN32 # include <math.h> # include <direct.h> # define MRN_MKDIR(pathname, mode) _mkdir((pathname)) +#else +# include <dirent.h> +# include <unistd.h> +# define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode)) #endif #include "mrn_err.h" -------------- next part -------------- HTML����������������������������...Download