Skip to content

Commit 1f8e279

Browse files
authored
further fixes to windows partitions
1 parent 868258e commit 1f8e279

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Modules/clinic/posixmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4698,7 +4698,7 @@ os_listdir_impl(PyObject *module, path_t *path)
46984698
}
46994699

47004700

4701-
#ifdef MS_WINDOWS_DESKTOP
4701+
#if defined(MS_WINDOWS_DESKTOP) || defined(WINAPI_PARTITION_SYSTEM)
47024702

47034703
/*[clinic input]
47044704
os.listdrives
@@ -4747,6 +4747,10 @@ os_listdrives_impl(PyObject *module)
47474747
return result;
47484748
}
47494749

4750+
#endif /* MS_WINDOWS_DESKTOP || WINAPI_PARTITION_SYSTEM */
4751+
4752+
#ifdef MS_WINDOWS
4753+
47504754
/*[clinic input]
47514755
os.listvolumes
47524756

0 commit comments

Comments
 (0)