meson,configure: always define HAVE_VISIBILITY
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
diff --git a/meson.build b/meson.build
index 50daa1d..826cd91 100644
--- a/meson.build
+++ b/meson.build
@@ -256,10 +256,9 @@
# Used for tets
prog_bash = find_program('bash')
-if cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',
- name : 'compiler supports __attribute__(("hidden"))')
- config.set10('HAVE_VISIBILITY', true)
-endif
+config.set10('HAVE_VISIBILITY',
+ cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',
+ name : 'compiler supports __attribute__(("hidden"))'))
foreach t : [
[with_exynos, 'EXYNOS'],