Kouhei Sutou
null+****@clear*****
Fri May 29 10:54:18 JST 2015
Kouhei Sutou 2015-05-29 10:54:18 +0900 (Fri, 29 May 2015) New Revision: 9cf2d267c8a253545d2406de45482e2c75c0061a https://github.com/pgroonga/pgroonga/commit/9cf2d267c8a253545d2406de45482e2c75c0061a Message: Use "struct _stat" on Windows Modified files: pgroonga.c Modified: pgroonga.c (+3 -1) =================================================================== --- pgroonga.c 2015-05-29 10:38:45 +0900 (1e580bc) +++ pgroonga.c 2015-05-29 10:54:18 +0900 (f3b60a8) @@ -35,8 +35,10 @@ #include <sys/stat.h> #ifdef WIN32 +typedef struct _stat pgrn_stat_buffer; # define pgrn_stat(path, buffer) _stat(path, buffer) #else +typedef struct stat pgrn_stat_buffer; # define pgrn_stat(path, buffer) stat(path, buffer) #endif @@ -193,7 +195,7 @@ PGrnEnsureDatabase(void) { char path[MAXPGPATH]; grn_obj *db; - struct stat file_status; + pgrn_stat_buffer file_status; GRN_CTX_SET_ENCODING(ctx, PGrnGetEncoding()); join_path_components(path, -------------- next part -------------- HTML����������������������������...Download