diff --git a/Include/fileutils.h b/Include/fileutils.h index 5ddd5116223..bb9048116d7 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -42,10 +42,6 @@ struct _Py_stat_struct { int st_ctime_nsec; unsigned long st_file_attributes; }; - -PyAPI_FUNC(void) _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *); -PyAPI_FUNC(void) _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *, - ULONG, struct _Py_stat_struct *); #else # define _Py_stat_struct stat #endif diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 945c9d01ecf..e381bf1bbba 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -372,6 +372,12 @@ static int win32_can_symlink = 0; #define DWORD_MAX 4294967295U +#ifdef MS_WINDOWS +/* defined in fileutils.c */ +PyAPI_FUNC(void) _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *); +PyAPI_FUNC(void) _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *, + ULONG, struct _Py_stat_struct *); +#endif #ifdef MS_WINDOWS static int