diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-14 14:50:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-14 14:50:26 (GMT) |
commit | 4f4402c4bb780a89c1d1c2564522e8ca901cbe17 (patch) | |
tree | 3a0c661bfcb5c4407eae886b58cbf4ba6a410812 /Include | |
parent | 4c9aa451756ab52dd1fba381469fdbb2201ee4c4 (diff) | |
download | cpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.zip cpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.tar.gz cpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.tar.bz2 |
Issue #9425: Create private _Py_stat() function
Use stat() or _wstat() depending on the OS.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h index d5ac13e..eb5ea28 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -135,6 +135,11 @@ PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); PyAPI_FUNC(char*) _Py_wchar2char(const wchar_t *text); PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode); +/* _Py_stat lives in import.c */ +#ifdef HAVE_STAT +int _Py_stat(PyObject *unicode, struct stat *statbuf); +#endif + #ifdef __cplusplus } #endif |