Meson: Define _WIN32_WINNT in the toplevel meson.build file

This commit is contained in:
Luca Bacci
2024-10-02 11:34:56 +02:00
parent 419758576f
commit a0c823e11d
5 changed files with 2 additions and 27 deletions

View File

@@ -62,7 +62,8 @@ add_project_arguments('-D_GNU_SOURCE', language: 'c')
if host_machine.system() == 'windows'
add_project_arguments(['-DUNICODE',
'-D_UNICODE'], language: 'c')
'-D_UNICODE',
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7'], language: 'c')
endif
# Use debug/optimization flags to determine whether to enable debug or disable