diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-24 22:42:19 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-24 22:44:11 +0100 |
commit | 666e456551f963e62ce6c84f5047d6a8fe983c84 (patch) | |
tree | b538a929bdfdc8c2b945a8ffb5e3b7cbfa853ff2 /win32 | |
parent | 31794ac376346b55951b0ec7ae5a155ca2e38b31 (diff) |
win32/build.py: add -DWINVER=0x0600 -D_WIN32_WINNT=0x0600
configure.ac sets this, but this wasn't used for compiling third-party
libraries. This setting however is important for libnfs, which adds
fallback definitions for POLLIN and POLLOUT with bogus values.
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/build.py b/win32/build.py index 45c5dfa4c..8b0a3fc71 100755 --- a/win32/build.py +++ b/win32/build.py @@ -58,7 +58,8 @@ class CrossGccToolchain: self.cflags = common_flags self.cxxflags = common_flags - self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + \ + ' -DWINVER=0x0600 -D_WIN32_WINNT=0x0600' self.ldflags = '-L' + os.path.join(install_prefix, 'lib') self.libs = '' |