diff --git a/meson.build b/meson.build index e8dbe51..408cacc 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,5 @@ -project('evol-headers', 'c') +project('evol-headers', 'c', + default_options : [ 'c_std=gnu17' ]) headers_include = include_directories('.') @@ -12,6 +13,11 @@ else evh_c_args += '-DEV_BUILDTYPE_RELEASE=1' endif +cc = meson.get_compiler('c') +if cc.get_id() == 'msvc' + evh_c_args += '/Zc:preprocessor' +endif + # All other targets should follow the same template str_lib = static_library('ev_str', files('buildfiles/ev_str.c'), c_args: evh_c_args) vec_lib = static_library('ev_vec', files('buildfiles/ev_vec.c'), c_args: evh_c_args)