mirror of https://github.com/bitcoin/bitcoin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.2 KiB
26 lines
1.2 KiB
commit a1e9de80ab99b4c956a6a4e21d3e0de6f7a1014d
|
|
Author: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
|
|
Date: Sat Apr 20 15:14:47 2024 +0100
|
|
|
|
Fix macro expression that guards `snprintf` for Windows
|
|
|
|
Otherwise, the `snprintf` is still wrongly emulated for the following
|
|
cases:
|
|
- mingw-w64 6.0.0 or new with ucrt
|
|
- mingw-w64 8.0.0 or new with iso c ext
|
|
|
|
--- a/src/win32_snprintf.h
|
|
+++ b/src/win32_snprintf.h
|
|
@@ -23,9 +23,9 @@
|
|
(defined(_MSC_VER) && _MSC_VER < 1900) /* Visual Studio older than 2015 */ || \
|
|
(defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) && defined(__NO_ISOCEXT)) /* mingw32 without iso c ext */ || \
|
|
(defined(__MINGW64_VERSION_MAJOR) && /* mingw-w64 not ... */ !( \
|
|
- (defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO != 0)) /* ... with ansi stdio */ || \
|
|
+ (defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO != 0) /* ... with ansi stdio */ || \
|
|
(__MINGW64_VERSION_MAJOR >= 6 && defined(_UCRT)) /* ... at least 6.0.0 with ucrt */ || \
|
|
- (__MINGW64_VERSION_MAJOR >= 8 && !defined(__NO_ISOCEXT)) /* ... at least 8.0.0 with iso c ext */ || \
|
|
+ (__MINGW64_VERSION_MAJOR >= 8 && !defined(__NO_ISOCEXT))) /* ... at least 8.0.0 with iso c ext */ || \
|
|
0) || \
|
|
0)
|
|
|