From 489c00addbbc998463487f16595170abe8a8fbc9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 30 Mar 2021 15:02:54 +0300 Subject: [PATCH 34/38] Meson: Set _WIN32_WINNT for Windows builds See osdn #41883 Signed-off-by: Marko Lindqvist --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 0da4c6f8d4..40da4c0092 100644 --- a/meson.build +++ b/meson.build @@ -231,6 +231,7 @@ if host_system == 'windows' pub_conf_data.set('FREECIV_HAVE_TINYCTHR', 1) pub_conf_data.set('FREECIV_HAVE_WINSOCK', 1) priv_conf_data.set('ALWAYS_ROOT', 1) + add_global_arguments('-D_WIN32_WINNT=0x0601', language : 'c') ws2_dep = c_compiler.find_library('ws2_32') else pub_conf_data.set('FREECIV_HAVE_PTHREAD', 1) -- 2.30.2