From 355559a1a86beba01c9ba54401cddbd00acb7b9e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 12 Dec 2021 19:41:01 +0200 Subject: [PATCH 45/45] Meson: Set _WIN32_WINNT also for C++ compilation See osdn #43371 Signed-off-by: Marko Lindqvist --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d020392543..c9dac77729 100644 --- a/meson.build +++ b/meson.build @@ -82,7 +82,7 @@ if host_system == 'windows' pub_conf_data.set('FREECIV_HAVE_WINSOCK', 1) pub_conf_data.set('FREECIV_SOCKET_ZERO_NOT_STDIN', 1) priv_conf_data.set('ALWAYS_ROOT', 1) - add_global_arguments('-D_WIN32_WINNT=0x0601', language : 'c') + add_global_arguments('-D_WIN32_WINNT=0x0601', language : ['c', 'cpp']) ws2_dep = c_compiler.find_library('ws2_32') else pub_conf_data.set('FREECIV_HAVE_PTHREAD', 1) -- 2.33.0