wgl: Switch to Win10 version defines to enable usage of Win10 WGL callbacks

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6228>
This commit is contained in:
Jesse Natalie 2020-03-17 10:53:33 -07:00 committed by Marge Bot
parent f811ddf5d1
commit 258ef4d4a4
2 changed files with 3 additions and 3 deletions

View File

@ -932,7 +932,7 @@ elif host_machine.system() == 'sunos'
pre_args += '-D__EXTENSIONS__'
elif host_machine.system() == 'windows'
pre_args += [
'-D_WINDOWS', '-D_WIN32_WINNT=0x0601', '-DWINVER=0x0601',
'-D_WINDOWS', '-D_WIN32_WINNT=0x0A00', '-DWINVER=0x0A00',
'-DPIPE_SUBSYSTEM_WINDOWS_USER',
'-D_USE_MATH_DEFINES', # XXX: scons doesn't use this for mingw
]

View File

@ -399,8 +399,8 @@ def generate(env):
#'_UNICODE',
#'UNICODE',
# http://msdn.microsoft.com/en-us/library/aa383745.aspx
('_WIN32_WINNT', '0x0601'),
('WINVER', '0x0601'),
('_WIN32_WINNT', '0x0A00'),
('WINVER', '0x0A00'),
]
if gcc_compat:
cppdefines += [('__MSVCRT_VERSION__', '0x0700')]