Skip to content

Commit

Permalink
fix: add compiler option -D__STDC_CONSTANT_MACROS
Browse files Browse the repository at this point in the history
It seems this is necessary when using libav with c++, see
https://www.ffmpeg.org/faq.html.
It seems reordering of imports done by clang format somehow made this option
necessary even though it worked without before

Signed-off-by: Gustav Grusell <[email protected]>
  • Loading branch information
grusell committed Sep 28, 2024
1 parent 23daeda commit 0c36829
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
project('vivict++', 'cpp', default_options : ['cpp_std=c++17', 'warning_level=3'])

extra_args = ['-D__STDC_CONSTANT_MACROS']
if meson.get_compiler('cpp').get_id() == 'gcc'
extra_args=['-Wno-shadow']
else
extra_args=[]
extra_args += '-Wno-shadow'
endif

fmt_proj = subproject('fmt', default_options: ['warning_level=0', 'default_library=static'])
Expand Down

0 comments on commit 0c36829

Please sign in to comment.