--- parser3/src/include/pa_dir.h 2013/07/21 20:33:44 1.23 +++ parser3/src/include/pa_dir.h 2015/06/29 17:59:13 1.26 @@ -8,7 +8,7 @@ #ifndef PA_DIR_H #define PA_DIR_H -#define IDENT_PA_DIR_H "$Id: pa_dir.h,v 1.23 2013/07/21 20:33:44 moko Exp $" +#define IDENT_PA_DIR_H "$Id: pa_dir.h,v 1.26 2015/06/29 17:59:13 moko Exp $" #include "pa_config_includes.h" @@ -17,7 +17,9 @@ for findfirst/next/close interface */ -#ifdef WIN32 +#ifdef _MSC_VER + +#include #define MAXPATH MAX_PATH @@ -35,8 +37,7 @@ struct ffblk { /*helper*/ HANDLE handle; - void stat_file(){} - bool is_dir(); + bool is_dir(bool); double size(); time_t c_timestamp(); time_t m_timestamp(); @@ -57,12 +58,9 @@ struct ffblk { #ifdef HAVE_STRUCT_DIRENT_D_TYPE unsigned char _d_type; - void stat_file(); -#else - void stat_file(){} - void real_stat_file(); #endif - bool is_dir(); + bool is_dir(bool); + void stat_file(); double size(); time_t c_timestamp(); time_t m_timestamp();