[gtksourceview] build: fix deprecated set10() usage



commit d81399d1cbe92591b2f6e837f008780582213150
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 30 17:02:20 2022 -0700

    build: fix deprecated set10() usage
    
    These need to be booleans rather than integers.

 meson.build | 10 +++++-----
 1 file 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]