Commit 92636bf2 authored by Matthias Klose's avatar Matthias Klose

- Issue #15647: Make isdir static for windows and posix

parent c551776f
...@@ -115,7 +115,7 @@ static const struct filedescr _PyImport_StandardFiletab[] = { ...@@ -115,7 +115,7 @@ static const struct filedescr _PyImport_StandardFiletab[] = {
#endif #endif
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
int isdir(char *path) { static int isdir(char *path) {
DWORD rv; DWORD rv;
/* see issue1293 and issue3677: /* see issue1293 and issue3677:
* stat() on Windows doesn't recognise paths like * stat() on Windows doesn't recognise paths like
...@@ -128,7 +128,7 @@ int isdir(char *path) { ...@@ -128,7 +128,7 @@ int isdir(char *path) {
} }
#else #else
#ifdef HAVE_STAT #ifdef HAVE_STAT
int isdir(char *path) { static int isdir(char *path) {
struct stat statbuf; struct stat statbuf;
return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode); return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment