[libgdata: 3/5] meson: Use set instead of set10
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata: 3/5] meson: Use set instead of set10
- Date: Thu, 27 Jun 2019 10:35:51 +0000 (UTC)
commit be94375e0d164dcc2486e39e7acbace6df12965c
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Tue Jun 25 22:31:40 2019 +0200
meson: Use set instead of set10
The code uses #ifdef, which tests for definedness, not the define's
value.
meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index a11c117b..26ac64f8 100644
--- a/meson.build
+++ b/meson.build
@@ -93,7 +93,7 @@ libsoup_dep = dependency('libsoup-2.4', version: '>= 2.42.0')
gdata_deps += libsoup_dep
# libsoup 2.47.3 is needed for the new SoupServer API; but it contained a bug in
# soup_server_set_ssl_cert_file() which was only fixed in 2.55.90.
-config_h.set10('HAVE_LIBSOUP_2_55_90', libsoup_dep.version().version_compare('>= 2.55.90'))
+config_h.set('HAVE_LIBSOUP_2_55_90', libsoup_dep.version().version_compare('>= 2.55.90'))
# Check for gtk
gtk_dep_req_version = '>= 2.91.2'
@@ -116,7 +116,7 @@ if enable_goa
gdata_deps += goa_dep
gdata_private_deps += dependency('gcr-base-3')
endif
-config_h.set10('HAVE_GOA', goa_dep.found())
+config_h.set('HAVE_GOA', goa_dep.found())
# Enable always building tests (default: yes) enable_always_build_tests = get_option('always_build_tests')
# Install test programs (default: no)
@@ -127,7 +127,7 @@ if always_build_tests
libuhttpmock_dep = dependency('libuhttpmock-0.0', version: '>= 0.5.0')
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.14')
- config_h.set10('HAVE_GDK_PIXBUF', gdk_pixbuf_dep.found())
+ config_h.set('HAVE_GDK_PIXBUF', gdk_pixbuf_dep.found())
endif
check_functions = [
@@ -143,7 +143,7 @@ check_functions += [
]
foreach func: check_functions
- config_h.set10('HAVE_' + func.to_upper(), cc.has_function(func))
+ config_h.set('HAVE_' + func.to_upper(), cc.has_function(func))
endforeach
check_headers = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]