2009-08-06 11:01:44 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: LGPL, See LGPL.txt in the top level directory
|
|
|
|
* PROJECT: ReactOS CRT library
|
|
|
|
* FILE: lib/sdk/crt/time/bitsfixup.h
|
|
|
|
* PURPOSE: definitions for different time_t versions
|
|
|
|
* PROGRAMERS: Timo Kreuzer
|
|
|
|
*/
|
2009-01-19 22:05:27 +00:00
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
#if defined(_USE_EXPLICIT_32BIT_TIME) || defined(_USE_EXPLICIT_64BIT_TIME)
|
2009-01-19 22:05:27 +00:00
|
|
|
#undef _timeb
|
|
|
|
#undef _ftime
|
|
|
|
#undef _tctime
|
|
|
|
#undef _tctime_s
|
|
|
|
#undef _tutime
|
|
|
|
#else
|
|
|
|
#define _time time
|
|
|
|
#endif
|
|
|
|
|
2012-02-07 18:09:25 +00:00
|
|
|
#undef _ftime_s
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
#ifdef _USE_EXPLICIT_32BIT_TIME
|
2009-01-19 22:05:27 +00:00
|
|
|
#define time_t __time32_t
|
|
|
|
#define _timeb __timeb32
|
|
|
|
#define _utimbuf __utimbuf32
|
|
|
|
|
|
|
|
#define difftime _difftime32
|
|
|
|
#define localtime _localtime32
|
|
|
|
#define localtime_s _localtime32_s
|
|
|
|
#define _time _time32
|
|
|
|
|
|
|
|
#define _ftime _ftime32
|
|
|
|
#define _ftime_s _ftime32_s
|
|
|
|
#define _futime _futime32
|
|
|
|
#define _tctime _tctime32
|
|
|
|
#define _tctime_s _tctime32_s
|
|
|
|
#define _tutime _tutime32
|
|
|
|
#define gmtime _gmtime32
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
#ifdef _USE_EXPLICIT_64BIT_TIME
|
2009-01-19 22:05:27 +00:00
|
|
|
#define time_t __time64_t
|
|
|
|
#define _timeb __timeb64
|
|
|
|
#define _utimbuf __utimbuf64
|
|
|
|
|
|
|
|
#define difftime _difftime64
|
|
|
|
#define localtime _localtime64
|
|
|
|
#define localtime_s _localtime64_s
|
|
|
|
#define _time _time64
|
|
|
|
|
|
|
|
#define _ftime _ftime64
|
|
|
|
#define _ftime_s _ftime64_s
|
|
|
|
#define _futime _futime64
|
|
|
|
#define _tctime _tctime64
|
|
|
|
#define _tctime_s _tctime64_s
|
|
|
|
#define _tutime _tutime64
|
|
|
|
#define gmtime _gmtime64
|
|
|
|
|
|
|
|
#endif
|