Fix Windows build errors introduced in #10498
Fixes #12386
cc @ken2812221, @Sjors, @MarcoFalke and @floreslorca
Fix Windows build errors introduced in #10498
Fixes #12386
cc @ken2812221, @Sjors, @MarcoFalke and @floreslorca
Fixes #12386
utACK f40df29d96a29197f9949b63da80f9ba3152fc79
Tested on a Gitian VM:
cd bitcoin
git remote add practicalswift https://github.com/practicalswift/bitcoin
git fetch practicalswift
cd ..
./gitian-build.sh -u https://github.com/practicalswift/bitcoin --detach-sign -c -b -o w sjors fix-windows-build
fix-windows-build
Build succeeds, but I do see some warnings (not sure if related), e.g.:
In file included from /home/ubuntu/build/bitcoin/depends/i686-w64-mingw32/share/../include/boost/thread/win32/condition_variable.hpp:9:0,
from /home/ubuntu/build/bitcoin/depends/i686-w64-mingw32/share/../include/boost/thread/condition_variable.hpp:14,
from ./util.h:31,
from ./addrman.h:14,
from init.cpp:12:
/home/ubuntu/build/bitcoin/depends/i686-w64-mingw32/share/../include/boost/thread/win32/thread_primitives.hpp:177:55: warning: conflicts with previous declaration ‘void* boost::detail::win32::GetModuleHandleA(const char*)’ [enabled by default]
__declspec(dllimport) void* __stdcall GetModuleHandleA(char const*);
I copied the executables over to a Windows 10 VM and was able to launch QT.