summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/sys/utime.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/include/sys/utime.h')
-rw-r--r--winsup/mingw/include/sys/utime.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/winsup/mingw/include/sys/utime.h b/winsup/mingw/include/sys/utime.h
index f95ec8485..14a2870de 100644
--- a/winsup/mingw/include/sys/utime.h
+++ b/winsup/mingw/include/sys/utime.h
@@ -57,12 +57,23 @@ struct utimbuf
};
#endif /* Not _NO_OLDNAMES */
+struct __utimbuf64
+{
+ __time64_t actime;
+ __time64_t modtime;
+};
+
#ifdef __cplusplus
extern "C" {
#endif
_CRTIMP int __cdecl _utime (const char*, struct _utimbuf*);
+
+#ifndef _NO_OLDNAMES
+_CRTIMP int __cdecl utime (const char*, struct utimbuf*);
+#endif /* Not _NO_OLDNAMES */
+
_CRTIMP int __cdecl _futime (int, struct _utimbuf*);
/* The wide character version, only available for MSVCRT versions of the
@@ -70,9 +81,13 @@ _CRTIMP int __cdecl _futime (int, struct _utimbuf*);
#ifdef __MSVCRT__
_CRTIMP int __cdecl _wutime (const wchar_t*, struct _utimbuf*);
#endif /* MSVCRT runtime */
-#ifndef _NO_OLDNAMES
-_CRTIMP int __cdecl utime (const char*, struct utimbuf*);
-#endif /* Not _NO_OLDNAMES */
+
+/* These require newer versions of msvcrt.dll (6.10 or higher). */
+#if __MSVCRT_VERSION__ >= 0x0601
+_CRTIMP int __cdecl _utime64 (const char*, struct __utimbuf64*);
+_CRTIMP int __cdecl _wutime64 (const wchar_t*, struct __utimbuf64*);
+_CRTIMP int __cdecl _futime64 (int, struct __utimbuf64*);
+#endif /* __MSVCRT_VERSION__ >= 0x0601 */
#ifdef __cplusplus
}