diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 22:09:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 22:09:40 (GMT) |
commit | b306d7594ff0ed5ba666dbb26491a269abfbc9d7 (patch) | |
tree | 6c0e7fbba4a7d70e4087d69705922a387115053c /Include/fileutils.h | |
parent | e7c8083bf1cfaef8a00b171ec2c170fad92974b7 (diff) | |
download | cpython-b306d7594ff0ed5ba666dbb26491a269abfbc9d7.zip cpython-b306d7594ff0ed5ba666dbb26491a269abfbc9d7.tar.gz cpython-b306d7594ff0ed5ba666dbb26491a269abfbc9d7.tar.bz2 |
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
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r-- | Include/fileutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h index 2971d9d..9b2d34d 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -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); |