Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.

This commit is contained in:
Jason R. Coombs 2012-03-08 09:56:00 -05:00
parent 4a24283272
commit 0e17dfbdcf
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ int isdir(char *path) {
return rv != INVALID_FILE_ATTRIBUTES && rv & FILE_ATTRIBUTE_DIRECTORY;
}
#else
#if HAVE_STAT
#ifdef HAVE_STAT
int isdir(char *path) {
struct stat statbuf;
return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);