summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/tchar.h
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2010-02-17 02:41:06 +0000
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2010-02-17 02:41:06 +0000
commitf94e2b9f58e3b3f0cb9d5465262e0db720ea3baf (patch)
treee10fdde1fb6078c98626a054f118176e720bb0b1 /winsup/mingw/include/tchar.h
parent38d09c90dec3f80091687f1b6ac253e2ffc1a0b9 (diff)
downloadcygnal-f94e2b9f58e3b3f0cb9d5465262e0db720ea3baf.tar.gz
cygnal-f94e2b9f58e3b3f0cb9d5465262e0db720ea3baf.tar.bz2
cygnal-f94e2b9f58e3b3f0cb9d5465262e0db720ea3baf.zip
2010-02-14 Roumen Petrov <rumen@users.sourceforge.net>
Issue [2134161]: time64 functions and types for msvcrt >= 8.0 (initial implementation) * new type: __time32_t * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t, __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32, __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t * new functions: _ctime32, _difftime32, _difftime64, _findfirst32 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64, _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32, _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64, _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32, _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32, _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32, _wstat32i64, _wstat64i32,_wutime32 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t, ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64, _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime, _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64, _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
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 */