--- parser3/src/include/pa_dir.h 2005/08/09 08:14:49 1.17 +++ parser3/src/include/pa_dir.h 2006/04/09 13:38:47 1.19 @@ -8,7 +8,7 @@ #ifndef PA_DIR_H #define PA_DIR_H -static const char * const IDENT_DIR_H="$Date: 2005/08/09 08:14:49 $"; +static const char * const IDENT_DIR_H="$Date: 2006/04/09 13:38:47 $"; #include "pa_config_includes.h" @@ -19,6 +19,7 @@ static const char * const IDENT_DIR_H="$ #ifdef WIN32 +#define WINVER 0x0400 #include #define MAXPATH MAX_PATH @@ -73,12 +74,12 @@ bool findfirst(const char* _pathname, st bool findnext(struct ffblk *_ffblk); void findclose(struct ffblk *_ffblk); -/// main dir workhorse: calles win32/unix unified functions findfirst/next/close +/// main dir workhorse: calles win32/unix unified functions findfirst/next/close [skip . and ..] #define LOAD_DIR(dir,action) {\ ffblk ffblk; \ if(!findfirst(dir, &ffblk, 0)) { \ do \ - if(*ffblk.ff_name && ffblk.ff_name[0]!='.') {\ + if(*ffblk.ff_name && !(ffblk.ff_name[0]=='.' && (ffblk.ff_name[1]==0 || ffblk.ff_name[1]=='.' && ffblk.ff_name[2]==0) )) {\ action; \ } \ while(!findnext(&ffblk)); \