diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-09 08:58:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-09 10:06:11 +0000 |
| commit | 718ba1602adf4a306327545849d043d982953d40 (patch) | |
| tree | 1617ccc5089f0bc9fa027dd4b624735370ffc9a3 | |
| parent | unicode-precompose: use fcft's precompose functionality (diff) | |
meson: explicitly define _POSIX_C_SOURCE
| -rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 9d468862..36d1bafa 100644 --- a/meson.build +++ b/meson.build @@ -13,7 +13,8 @@ is_debug_build = get_option('buildtype').startswith('debug') cc = meson.get_compiler('c') add_project_arguments( - ['-D_GNU_SOURCE=200809L'] + (is_debug_build ? ['-D_DEBUG'] : []) + + ['-D_POSIX_C_SOURCE=200809L', '-D_GNU_SOURCE=200809L'] + + (is_debug_build ? ['-D_DEBUG'] : []) + cc.get_supported_arguments( ['-fstrict-aliasing', '-Wstrict-aliasing', |
