]> granicus.if.org Git - python/commitdiff
- Issue #15647: Make isdir static for windows and posix
authorMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:42:45 +0000 (17:42 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:42:45 +0000 (17:42 +0200)
Python/import.c

index 2f11e756c92ca0f7d2dc72d2df02200c347cdff5..e95b7c0e6f8facda6caf2daaec0b27b54d647046 100644 (file)
@@ -115,7 +115,7 @@ static const struct filedescr _PyImport_StandardFiletab[] = {
 #endif
 
 #ifdef MS_WINDOWS
-int isdir(char *path) {
+static int isdir(char *path) {
     DWORD rv;
     /* see issue1293 and issue3677:
      * stat() on Windows doesn't recognise paths like
@@ -128,7 +128,7 @@ int isdir(char *path) {
 }
 #else
 #ifdef HAVE_STAT
-int isdir(char *path) {
+static int isdir(char *path) {
     struct stat statbuf;
     return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);
 }