summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-15 16:34:25 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-15 16:34:25 +0200
commit64ae95c54006c586800039614d74b2f0e2f78259 (patch)
tree0eda5a62c7cb976e34a1f0469793695dd360ba1c
parent49e65989679facd98c777ac7a945bc9aab82d771 (diff)
downloadsigc++-libsigc++-3-2.tar.gz
Fix build with -Dbuild-deprecated-api=falselibsigc++-3-2
Fixes #82
-rw-r--r--examples/meson.build2
-rw-r--r--meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/meson.build b/examples/meson.build
index c55bfdd..3c575ae 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -20,7 +20,7 @@ foreach ex : examples
endforeach
exe_file = executable(ex_name, ex_sources,
- cpp_args: '-DSIGCXX_DISABLE_DEPRECATED',
+ cpp_args: '-DSIGCXX_DISABLE_DEPRECATED=1',
dependencies: sigcxx_own_dep,
implicit_include_directories: false,
build_by_default: build_examples
diff --git a/meson.build b/meson.build
index ca49138..b20016b 100644
--- a/meson.build
+++ b/meson.build
@@ -206,7 +206,7 @@ pkg_conf_data.set('PACKAGE_VERSION', meson.project_version())
pkg_conf_data.set('SIGCXX_API_VERSION', sigcxx_api_version)
if not build_deprecated_api
- pkg_conf_data.set('SIGCXX_DISABLE_DEPRECATED', true)
+ pkg_conf_data.set('SIGCXX_DISABLE_DEPRECATED', 1)
endif
pkg_conf_data.set('SIGCXX_MAJOR_VERSION', sigcxx_major_version)
pkg_conf_data.set('SIGCXX_MINOR_VERSION', sigcxx_minor_version)