]> granicus.if.org Git - python/commitdiff
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
authorJason R. Coombs <jaraco@jaraco.com>
Thu, 8 Mar 2012 14:56:00 +0000 (09:56 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Thu, 8 Mar 2012 14:56:00 +0000 (09:56 -0500)
Python/import.c

index 3fc975460a05887aa8fffc2e9f06b9e4cba35fbe..127b8078401e2f451afb1b1f9d0e2bba14526681 100644 (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);