summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/tchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/include/tchar.h')
-rw-r--r--winsup/mingw/include/tchar.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/winsup/mingw/include/tchar.h b/winsup/mingw/include/tchar.h
index f68056263..6170d0491 100644
--- a/winsup/mingw/include/tchar.h
+++ b/winsup/mingw/include/tchar.h
@@ -169,9 +169,17 @@ typedef wchar_t _TCHAR;
#define _ui64tot _ui64tow
#define _tasctime _wasctime
#define _tctime _wctime
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tctime32 _wctime32
+#define _tctime64 _wctime64
+#endif /* __MSVCRT_VERSION__ >= 0x0800 */
#define _tstrdate _wstrdate
#define _tstrtime _wstrtime
#define _tutime _wutime
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tutime64 _wutime64
+#define _tutime32 _wutime32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tcsnccoll _wcsncoll
#define _tcsncoll _wcsncoll
#define _tcsncicoll _wcsnicoll
@@ -181,6 +189,12 @@ typedef wchar_t _TCHAR;
#define _tcreat _wcreat
#define _tfindfirst _wfindfirst
#define _tfindnext _wfindnext
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tfindfirst64 _wfindfirst64
+#define _tfindfirst32 _wfindfirst32
+#define _tfindnext64 _wfindnext64
+#define _tfindnext32 _wfindnext32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tfdopen _wfdopen
#define _tfopen _wfopen
#define _tfreopen _wfreopen
@@ -203,6 +217,18 @@ typedef wchar_t _TCHAR;
#define _tfindfirsti64 _wfindfirsti64
#define _tfindnexti64 _wfindnexti64
#define _tfinddatai64_t _wfinddatai64_t
+#if __MSVCRT_VERSION__ >= 0x0601
+#define _tfinddata64_t _wfinddata64_t
+#endif
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tfinddata32_t _wfinddata32_t
+#define _tfinddata32i64_t _wfinddata32i64_t
+#define _tfinddata64i32_t _wfinddata64i32_t
+#define _tfindfirst32i64 _wfindfirst32i64
+#define _tfindfirst64i32 _wfindfirst64i32
+#define _tfindnext32i64 _wfindnext32i64
+#define _tfindnext64i32 _wfindnext64i32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tchdir _wchdir
#define _tgetcwd _wgetcwd
#define _tgetdcwd _wgetdcwd
@@ -211,6 +237,11 @@ typedef wchar_t _TCHAR;
#define _tstat _wstat
#define _tstati64 _wstati64
#define _tstat64 _wstat64
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tstat32 _wstat32
+#define _tstat32i64 _wstat32i64
+#define _tstat64i32 _wstat64i32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#endif /* __MSVCRT__ */
/* dirent structures and functions */
@@ -342,9 +373,17 @@ typedef char _TCHAR;
#define _totlower tolower
#define _tasctime asctime
#define _tctime ctime
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tctime32 _ctime32
+#define _tctime64 _ctime64
+#endif /* __MSVCRT_VERSION__ >= 0x0800 */
#define _tstrdate _strdate
#define _tstrtime _strtime
#define _tutime _utime
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tutime64 _utime64
+#define _tutime32 _utime32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tcsftime strftime
/* Macro functions */
#define _tcsdec _strdec
@@ -365,6 +404,12 @@ typedef char _TCHAR;
#define _tcreat _creat
#define _tfindfirst _findfirst
#define _tfindnext _findnext
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tfindfirst64 _findfirst64
+#define _tfindfirst32 _findfirst32
+#define _tfindnext64 _findnext64
+#define _tfindnext32 _findnext32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tmktemp _mktemp
#define _topen _open
#define _taccess _access
@@ -393,8 +438,25 @@ typedef char _TCHAR;
#define _tfindfirsti64 _findfirsti64
#define _tfindnexti64 _findnexti64
#define _tfinddatai64_t _finddatai64_t
+#if __MSVCRT_VERSION__ >= 0x0601
+#define _tfinddata64_t _finddata64_t
+#endif
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tfinddata32_t _finddata32_t
+#define _tfinddata32i64_t _finddata32i64_t
+#define _tfinddata64i32_t _finddata64i32_t
+#define _tfindfirst32i64 _findfirst32i64
+#define _tfindfirst64i32 _findfirst64i32
+#define _tfindnext32i64 _findnext32i64
+#define _tfindnext64i32 _findnext64i32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#define _tstati64 _stati64
#define _tstat64 _stat64
+#if __MSVCRT_VERSION__ >= 0x0800
+#define _tstat32 _stat32
+#define _tstat32i64 _stat32i64
+#define _tstat64i32 _stat64i32
+#endif /* __MSVCRT_VERSION__ > 0x0800 */
#endif /* __MSVCRT__ */
/* dirent structures and functions */