diff options
author | Christian Hergert <chergert@redhat.com> | 2022-06-30 17:02:20 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2022-06-30 17:02:20 -0700 |
commit | d81399d1cbe92591b2f6e837f008780582213150 (patch) | |
tree | de4ee29023c927de28b133522aae08e175626d86 | |
parent | f6d36747799887f9cc99378a830305e9b7fb81de (diff) | |
download | gtksourceview-d81399d1cbe92591b2f6e837f008780582213150.tar.gz |
build: fix deprecated set10() usage
These need to be booleans rather than integers.
-rw-r--r-- | meson.build | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 59a837be..0d9d1b07 100644 --- a/meson.build +++ b/meson.build @@ -149,7 +149,7 @@ if host_machine.system() != 'windows' endif if (version_minor % 2 == 1) or (version_minor >= 90) - config_h.set10('DEVELOPMENT_BUILD', 1) + config_h.set10('DEVELOPMENT_BUILD', true) endif check_headers = [ @@ -164,16 +164,16 @@ endforeach # Functions if cc.has_function('memalign', prefix: '#include <stdlib.h>\n#include <malloc.h>') - config_h.set10('HAVE_MEMALIGN', 1, description: 'Define if memalign() is available') + config_h.set10('HAVE_MEMALIGN', true, description: 'Define if memalign() is available') elif cc.has_function('_aligned_malloc', prefix: '#include <malloc.h>') - config_h.set10('HAVE__ALIGNED_MALLOC', 1, description: 'Define if _aligned_malloc() is available') + config_h.set10('HAVE__ALIGNED_MALLOC', true, description: 'Define if _aligned_malloc() is available') # Don't probe the ones below on Windows because when building with # MinGW-w64 on MSYS2, Meson<0.37.0 incorrectly detects those below as # being available even though they're not. elif cc.has_function('aligned_alloc', prefix: '#include <stdlib.h>') and not (host_system == 'windows') - config_h.set10('HAVE_ALIGNED_ALLOC', 1, description: 'Define if aligned_malloc() is available') + config_h.set10('HAVE_ALIGNED_ALLOC', true, description: 'Define if aligned_malloc() is available') elif cc.has_function('posix_memalign', prefix: '#include <stdlib.h>') and not (host_system == 'windows') - config_h.set10('HAVE_POSIX_MEMALIGN', 1, description: 'Define if posix_memalign() is available') + config_h.set10('HAVE_POSIX_MEMALIGN', true, description: 'Define if posix_memalign() is available') else error('No aligned malloc function could be found.') endif |