summaryrefslogtreecommitdiff
path: root/Include/fileutils.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-24 12:16:28 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-03-24 12:16:28 +0100
commit91afbb60885d5904dc6cb4d063ae33454507bf71 (patch)
tree88446ccd3150c4e107d0157cdb85a70dbc4de596 /Include/fileutils.h
parent10dc48497e9c79d253bd0861b5f41843a114f146 (diff)
downloadcpython-git-91afbb60885d5904dc6cb4d063ae33454507bf71.tar.gz
Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c
I expected more users of _Py_wstat(), but in practice it's only used by Modules/getpath.c. Move the function because it's not needed on Windows. Windows uses PC/getpathp.c which uses the Win32 API (ex: GetFileAttributesW()) not the POSIX API.
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r--Include/fileutils.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 577ad88736..93a9297c87 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -15,10 +15,6 @@ PyAPI_FUNC(char*) Py_EncodeLocale(
const wchar_t *text,
size_t *error_pos);
-PyAPI_FUNC(int) _Py_wstat(
- const wchar_t* path,
- struct stat *buf);
-
#ifndef Py_LIMITED_API
#ifdef MS_WINDOWS