Fixed MSVC compilation issues
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
project('evol-headers', 'c')
|
project('evol-headers', 'c',
|
||||||
|
default_options : [ 'c_std=gnu17' ])
|
||||||
|
|
||||||
headers_include = include_directories('.')
|
headers_include = include_directories('.')
|
||||||
|
|
||||||
@@ -12,6 +13,11 @@ else
|
|||||||
evh_c_args += '-DEV_BUILDTYPE_RELEASE=1'
|
evh_c_args += '-DEV_BUILDTYPE_RELEASE=1'
|
||||||
endif
|
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
|
# All other targets should follow the same template
|
||||||
str_lib = static_library('ev_str', files('buildfiles/ev_str.c'), c_args: evh_c_args)
|
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)
|
vec_lib = static_library('ev_vec', files('buildfiles/ev_vec.c'), c_args: evh_c_args)
|
||||||
|
|||||||
Reference in New Issue
Block a user