From f329878e74e1eefffad5c70942bc6cd2c27440d3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 24 Mar 2015 10:27:50 +0100 Subject: Issue #23753: Python doesn't support anymore platforms without stat() or fstat(), these functions are always required. Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and DONT_HAVE_FSTAT. --- Include/fileutils.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Include/fileutils.h') diff --git a/Include/fileutils.h b/Include/fileutils.h index cfcc40381f..577ad88736 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -15,14 +15,11 @@ PyAPI_FUNC(char*) Py_EncodeLocale( const wchar_t *text, size_t *error_pos); -#if defined(HAVE_STAT) && !defined(MS_WINDOWS) PyAPI_FUNC(int) _Py_wstat( const wchar_t* path, struct stat *buf); -#endif #ifndef Py_LIMITED_API -#if defined(HAVE_FSTAT) || defined(MS_WINDOWS) #ifdef MS_WINDOWS struct _Py_stat_struct { @@ -49,14 +46,11 @@ struct _Py_stat_struct { PyAPI_FUNC(int) _Py_fstat( int fd, struct _Py_stat_struct *stat); -#endif /* HAVE_FSTAT || MS_WINDOWS */ #endif /* Py_LIMITED_API */ -#ifdef HAVE_STAT PyAPI_FUNC(int) _Py_stat( PyObject *path, struct stat *statbuf); -#endif /* HAVE_STAT */ #ifndef Py_LIMITED_API PyAPI_FUNC(int) _Py_open( -- cgit v1.2.1