From: Matthias Klose Date: Tue, 14 Aug 2012 15:42:45 +0000 (+0200) Subject: - Issue #15647: Make isdir static for windows and posix X-Git-Tag: v2.7.5~109^2~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92636bf243873bce70f7056c1fa8a125a1146526;p=python - Issue #15647: Make isdir static for windows and posix --- diff --git a/Python/import.c b/Python/import.c index 2f11e756c9..e95b7c0e6f 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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); }