mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
This commit is contained in:
parent
4a24283272
commit
0e17dfbdcf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue