mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Set Windows API version in Meson
This commit is contained in:
parent
b4c05a18b4
commit
9dca7aeece
16 changed files with 21 additions and 0 deletions
6
build-utils-meson/windows-version/meson.build
Normal file
6
build-utils-meson/windows-version/meson.build
Normal file
|
@ -0,0 +1,6 @@
|
|||
if host_machine.system() == 'windows'
|
||||
# https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170
|
||||
# #define _WIN32_WINNT_WIN8 0x0602
|
||||
# We currently don't use any API which requires higher than this.
|
||||
add_project_arguments([ '-D_WIN32_WINNT=0x0602' ], language: 'cpp')
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue