meson: correct windows-version define
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 22 Apr 2020 15:54:38 +0000 (17:54 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 11:19:52 +0000 (11:19 +0000)
commit7f17a0a809195cefa2240f55d30f00e3fe0572b3
tree50bebb257fa66a3d7f6e655f95dc4d1cbc67babf
parent32d871b48fbf38cb309eaaa13c8b425695141b60
meson: correct windows-version define

The macro "_WINVER" does nothing, the macro definitions that matter for
windows API version selection are "_WIN32_WINNT" and "WINVER".

The header "sdkddkver.h" (which is included from thousands of
different windows-headers) defines "WINVER" to the same value as
"_WIN32_WINNT" of only the latter is defined, which explains why this
works right now. But we shouldn't depend on that kind of luck, and
instead define the right maco.

Fixes: 3aee462781a ("meson: add windows compiler checks and libraries")
Acked-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4681>
meson.build