From e56ab6c78498a3ab63ecce88f36df6eaae8b6824 Mon Sep 17 00:00:00 2001 From: line0 Date: Sun, 27 Oct 2019 02:29:31 +0100 Subject: [PATCH] meson: define BOOST_USE_WINDOWS_H on Windows fixes symbol redefinition errors in VS 2019 --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 5175005be..db004ef2a 100644 --- a/meson.build +++ b/meson.build @@ -58,9 +58,14 @@ deps += iconv_dep deps += dependency('libass', version: '>=0.9.7', fallback: ['libass', 'libass_dep']) + deps += dependency('boost', version: '>=1.50.0', modules: ['chrono', 'filesystem', 'locale', 'regex', 'system', 'thread']) +if host_machine.system() == 'windows' + conf.set('BOOST_USE_WINDOWS_H', '1') +endif + deps += dependency('zlib', fallback: ['zlib', 'zlib_dep']) wx_dep = dependency('wxWidgets', version: '>=3.0.0',