diff Python/import.c @ 78576:bdd1b2228c14 2.7

- Issue #15647: Make isdir static for windows and posix
author Matthias Klose <doko@ubuntu.com>
date Tue, 14 Aug 2012 17:42:45 +0200
parents a775fc27f469
children ba1c48f8b571
line wrap: on
line diff
--- a/Python/import.c	Tue Aug 14 17:24:47 2012 +0200
+++ b/Python/import.c	Tue Aug 14 17:42:45 2012 +0200
@@ -115,7 +115,7 @@
 #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 @@
 }
 #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);
 }