Project

General

Profile

Feature #1282 ยป 0032-Meson-Make-Windows-10-the-minimum-requirement-by-def.patch

Marko Lindqvist, 04/05/2025 01:49 PM

View differences:

meson.build
if min_win_ver != ''
add_global_arguments('-D_WIN32_WINNT=' + min_win_ver, language: ['c', 'cpp'])
else
add_global_arguments('-D_WIN32_WINNT=0x0A00', language : ['c', 'cpp'])
endif
if cxx_build
......
add_global_arguments('-Wno-c99-extensions', language : 'cpp')
endif
endif
if min_win_ver == ''
if qtver == 'qt6' or qtver == 'qt6x'
add_global_arguments('-D_WIN32_WINNT=0x0A00', language : ['c', 'cpp'])
else
add_global_arguments('-D_WIN32_WINNT=0x0603', language : ['c', 'cpp'])
endif
endif
elif min_win_ver == ''
add_global_arguments('-D_WIN32_WINNT=0x0603', language : ['c', 'cpp'])
endif
net_dep = c_compiler.find_library('ws2_32')
    (1-1/1)