mingw-w64/mingw-w64-headers
Pali Rohár 469e8e419b crt: Provide __daylight(), __dstbias(), __timezone() and __tzname() functions for pre-msvcr80 builds
These functions return pointer to global variables with same name but
without the first leading underscore. These functions are available also
under name with leading "__p" prefix.

Functions __daylight(), __dstbias(), __timezone() and __tzname() are
available in msvcr80+ libraries and also in UCRT.

Functions __daylight(), __dstbias() are also available in later versions of
i386 and x64 msvcrt.dll and are available in all ARM versions of msvcrt.dll.

Functions __p__daylight(), __p__timezone() and __p__tzname() are available
since msvcrt20.dll and are present in all later msvcrt versions except the
UCRT and non-i386 OS system version of msvcrt.dll.

Function __p__dstbias() is available since msvcrt40.dll and is present also
in all later msvcrt versions except the UCRT and non-i386 OS system version
of msvcrt.dll.

Global variables _daylight, _timezone and _tzname are available in all
msvcrt versions except UCRT.

Global variable _dstbias is present since msvcrt40.dll, except UCRT and
non-i386 OS system versions of msvcrt.dll.

Define __daylight, __dstbias, __timezone and __tzname for all CRT import
libraries either as aliases to __p__daylight, __p__dstbias, __p__timezone,
and __p__tzname or as function wrappers around variables _daylight,
_dstbias, _timezone and _tzname, based on what each DLL library provides.

With this change also unifies time.h file to define _daylight, _dstbias,
_timezone and _tzname for all CRT builds via functions. This removes
another ifdef _UCRT and improves ABI compatibility between UCRT and
non-UCRT builds.

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-09-27 15:01:17 +03:00
..
build-aux Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
crt crt: Provide __daylight(), __dstbias(), __timezone() and __tzname() functions for pre-msvcr80 builds 2024-09-27 15:01:17 +03:00
ddk include/wdm.h: Fix -Wsign-compare warning in RtlExtendedMagicDivide() 2022-03-14 22:21:33 +08:00
defaults headers: Get rid of _mingw_directx.h. 2020-01-20 15:41:40 +01:00
include headers: Fix include guard for functiondiscoverykeys_devpkey.h 2024-09-20 22:25:16 +08:00
testcases headers: Implement quaternion functions in windowsnumerics.h 2022-11-25 10:36:16 +02:00
tlb Revert "headers: Update to wine master" 2023-07-23 19:01:04 +08:00
.gitignore Update .gitignore files 2022-10-08 20:39:55 +08:00
aclocal.m4 Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
ChangeLog
ChangeLog.2009
ChangeLog.2010
ChangeLog.2011
ChangeLog.2012
ChangeLog.2013
config.h.in
configure Regenerate configure with autoconf 2.72 2024-01-09 22:26:23 +08:00
configure.ac configure: Use ucrt for msvcrt by default. 2023-06-25 20:31:20 +02:00
Makefile.am headers: Import webservices.h and weakreference.idl from Wine. 2024-09-04 15:04:48 +02:00
Makefile.in headers: Import webservices.h and weakreference.idl from Wine. 2024-09-04 15:04:48 +02:00
wine-import.sh headers: Import webservices.h and weakreference.idl from Wine. 2024-09-04 15:04:48 +02:00