@@ -1451,24 +1451,6 @@ win32_wchdir(LPCWSTR path)
14511451#define HAVE_STAT_NSEC 1
14521452#define HAVE_STRUCT_STAT_ST_FILE_ATTRIBUTES 1
14531453
1454- struct win32_stat {
1455- unsigned long st_dev ;
1456- __int64 st_ino ;
1457- unsigned short st_mode ;
1458- int st_nlink ;
1459- int st_uid ;
1460- int st_gid ;
1461- unsigned long st_rdev ;
1462- __int64 st_size ;
1463- time_t st_atime ;
1464- int st_atime_nsec ;
1465- time_t st_mtime ;
1466- int st_mtime_nsec ;
1467- time_t st_ctime ;
1468- int st_ctime_nsec ;
1469- unsigned long st_file_attributes ;
1470- };
1471-
14721454static BOOL
14731455attributes_from_dir (LPCSTR pszFile , BY_HANDLE_FILE_INFORMATION * info , ULONG * reparse_tag )
14741456{
@@ -1579,7 +1561,7 @@ get_target_path(HANDLE hdl, wchar_t **target_path)
15791561}
15801562
15811563/* defined in fileutils.c */
1582- int
1564+ void
15831565_Py_attribute_data_to_stat (BY_HANDLE_FILE_INFORMATION * info , ULONG reparse_tag , struct _Py_stat_struct * result );
15841566
15851567static int
@@ -6221,7 +6203,7 @@ os_utime(PyModuleDef *module, PyObject *args, PyObject *kwargs)
62216203
62226204#ifdef MS_WINDOWS
62236205void
6224- time_t_to_FILE_TIME (time_t time_in , int nsec_in , FILETIME * out_ptr );
6206+ _Py_time_t_to_FILE_TIME (time_t time_in , int nsec_in , FILETIME * out_ptr );
62256207#endif
62266208
62276209static PyObject *
@@ -6327,8 +6309,8 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, PyObject *ns,
63276309 atime = mtime ;
63286310 }
63296311 else {
6330- time_t_to_FILE_TIME (utime .atime_s , utime .atime_ns , & atime );
6331- time_t_to_FILE_TIME (utime .mtime_s , utime .mtime_ns , & mtime );
6312+ _Py_time_t_to_FILE_TIME (utime .atime_s , utime .atime_ns , & atime );
6313+ _Py_time_t_to_FILE_TIME (utime .mtime_s , utime .mtime_ns , & mtime );
63326314 }
63336315 if (!SetFileTime (hFile , NULL , & atime , & mtime )) {
63346316 /* Avoid putting the file name into the error here,
0 commit comments