Skip to content

Commit bed64c0

Browse files
committed
- Issue #15647: Make isdir static for windows and posix
1 parent b18850f commit bed64c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/import.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static const struct filedescr _PyImport_StandardFiletab[] = {
115115
#endif
116116

117117
#ifdef MS_WINDOWS
118-
int isdir(char *path) {
118+
static int isdir(char *path) {
119119
DWORD rv;
120120
/* see issue1293 and issue3677:
121121
* stat() on Windows doesn't recognise paths like
@@ -128,7 +128,7 @@ int isdir(char *path) {
128128
}
129129
#else
130130
#ifdef HAVE_STAT
131-
int isdir(char *path) {
131+
static int isdir(char *path) {
132132
struct stat statbuf;
133133
return stat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode);
134134
}

0 commit comments

Comments
 (0)