diff options
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 93ba9d42..5a41b3be 100644 --- a/meson.build +++ b/meson.build @@ -48,6 +48,12 @@ common_flags = [ ] cc = meson.get_compiler('c') + +# define ssize_t as Microsoft's headers do not define it +if cc.get_argument_syntax() == 'msvc' + add_project_arguments('-Dssize_t=gssize', language: 'c') +endif + # Enable extra warnings if compiler supports them. if cc.get_id() == 'msvc' common_flags += ['/FImsvc_recommended_pragmas.h'] |