mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix fileutils for Windows
* Don't define _Py_wstat() on Windows, Windows has its own _wstat() function with a different API (the stat buffer has another type) * Include windows.h
This commit is contained in:
parent
e7c8083bf1
commit
b306d7594f
2 changed files with 8 additions and 9 deletions
|
|
@ -11,7 +11,7 @@ PyAPI_FUNC(wchar_t *) _Py_char2wchar(
|
|||
PyAPI_FUNC(char*) _Py_wchar2char(
|
||||
const wchar_t *text);
|
||||
|
||||
#if defined(MS_WINDOWS) || defined(HAVE_STAT)
|
||||
#if defined(HAVE_STAT) && !defined(MS_WINDOWS)
|
||||
PyAPI_FUNC(int) _Py_wstat(
|
||||
const wchar_t* path,
|
||||
struct stat *buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue