[Mingw-w64-public] [PATCH] headers: Avoid using the dllimported versions of Interlocked functions on i386

2017-11-15 Thread Martin Storsjö
Complete the mapping of unprefixed Interlocked functions to the ones starting with an underscore in winnt.h. This makes it consistent with x86_64. Avoid declaring the dllimported versions of the functions. We currently export them with the __imp_ prefix in lib32/kernel32.def (but marked as DATA,

[Mingw-w64-public] [PATCH] crt: Provide compat wrappers for the unprefixed "timezone" and "tzname"

2017-11-15 Thread Martin Storsjö
We can't redirect these to the function calls via defines, since "#define timezone" will break any code that uses e.g. "struct timezone". We can provide a replacement data member here, but it is only updated on init. By adding an attribute declaring it as deprecated, we give callers a chance of

[Mingw-w64-public] [PATCH] ucrtbase: Provide most common *printf functions as non-inline functions

2017-11-15 Thread Martin Storsjö
This allows build scripts that check for functions without including stdio.h (but just checking if the linker finds a symbol with the given name) to detect the presence of these functions. The asprintf and vasprintf functions get included from libmingwex, and they are implemented in terms of

Re: [Mingw-w64-public] Finding runtime version

2017-11-15 Thread niXman
sisyph...@optusnet.com.au 2017-11-15 14:00: Having determined that __MINGW64_VERSION_MAJOR is "5" and that __MINGW64_VERSION_MINOR is "0", is there some way that the C preprocessor can determine whether the runtime version is 5.0.3 (or not) ? +1 for this question. -- Regards, niXman

Re: [Mingw-w64-public] Finding runtime version

2017-11-15 Thread sisyphus1
-Original Message- From: sisyph...@optusnet.com.au Sent: Friday, November 10, 2017 8:09 PM To: mingw-w64-public@lists.sourceforge.net Subject: Finding runtime version Hi, For mingw-w64 runtime version x.y.z, I know that __MINGW64_VERSION_MAJOR will give me the value of x, and

Re: [Mingw-w64-public] Finding runtime version

2017-11-15 Thread niXman
Kai, JonY, ok for commit for master and v5x? diff --git a/mingw-w64-headers/crt/_mingw_mac.h b/mingw-w64-headers/crt/_mingw_mac.h index bf7b330..2abe847 100644 --- a/mingw-w64-headers/crt/_mingw_mac.h +++ b/mingw-w64-headers/crt/_mingw_mac.h @@ -13,6 +13,7 @@ #define __MINGW64_VERSION_MAJOR