luke-jr
commented at 9:11 AM on March 30, 2019:
member
#9245 no longer needs this, since the main _WIN32_WINNT got bumped by something else.
So rather than just lose it, might as well get it merged in independently.
I'm not aware of any practical effects, but it seems safer to use the same API versions everywhere.
fanquake added the label Windows on Mar 30, 2019
fanquake added the label Build system on Mar 30, 2019
laanwj
commented at 9:53 AM on March 30, 2019:
member
I think this needs analogous MSVC build system changes.
luke-jr force-pushed on Mar 30, 2019
luke-jr
commented at 12:48 PM on March 30, 2019:
member
Fixed
DrahtBot
commented at 1:36 PM on March 30, 2019:
member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#18427 (Bugfix? Restore linking to libmingwthrd by luke-jr)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
MarcoFalke added the label Needs gitian build on Mar 30, 2019
MarcoFalke renamed this: Move Win32 defines to configure.ac to ensure they are globally defined build: Move Win32 defines to configure.ac to ensure they are globally defined on Mar 30, 2019
MarcoFalke renamed this: build: Move Win32 defines to configure.ac to ensure they are globally defined Move Win32 defines to configure.ac to ensure they are globally defined on Mar 30, 2019
DrahtBot removed the label Needs gitian build on Mar 31, 2019
sipsorcery
commented at 8:43 PM on April 1, 2019:
member
tACKe38c1940ff45a155f8bb89ed102dbd2fe1b770dc with msvc x64.
(haven't tested the mingw build)
practicalswift
commented at 7:33 AM on April 2, 2019:
contributor
FWIW: I've verified that a disassembly of the bitcoind binary built on a Ubuntu 18.04 machine with this patch applied is identical to a disassembly of the bitcoind binary built against master (as expected).
fanquake requested review from ken2812221 on Apr 3, 2019
DrahtBot added the label Needs rebase on Jun 19, 2019
MarcoFalke deleted a comment on Sep 30, 2019
MarcoFalke
commented at 12:46 PM on September 30, 2019:
member
While reviewing I did check the time & lines saved in preprocessing by passing WIN32_LEAN_AND_MEAN. i.e:
#include <windows.h>
int main() {
return 0;
}
# x86_64-w64-mingw32-g++ (GCC) 10-win32 20200525
# mingw-w64 7.0.0
time x86_64-w64-mingw32-g++ -E test.cpp | wc -l
80856 lines
avg time of 0.40s
time x86_64-w64-mingw32-g++ -E test.cpp -DWIN32_LEAN_AND_MEAN
54995 lines
avg time of 0.13s
# also checked with more of our defines
time x86_64-w64-mingw32-g++ -E test.cpp -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN -D_MT -DWIN32 -D_WINDOWS -D_FILE_OFFSET_BITS=64 | wc -l
56884 lines
avg time ~ the same as -DWIN32_LEAN_AND_MEAN
I might follow up with some documentation additions to configure.ac.
fanquake merged this on Aug 25, 2020
fanquake closed this on Aug 25, 2020
sidhujag referenced this in commit 62b3455e58 on Aug 25, 2020
jasonbcox referenced this in commit 53dec441a8 on Oct 2, 2020
zkbot referenced this in commit 372f695d4d on Jun 5, 2021
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:14 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me