summaryrefslogtreecommitdiffstats
path: root/qt/qextscintillaglobal.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-12-06 16:06:20 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-12-06 16:06:20 +0100
commit0c5e20bde1f26abf843fd1c71448b5210b9f350a (patch)
tree3a45b918254a8e0c3147f773507ddee7545c2c6d /qt/qextscintillaglobal.h
parentd23cdd1e2ce3c26ea3f9722b24c92c826acd7c9c (diff)
downloadtqscintilla-0c5e20bde1f26abf843fd1c71448b5210b9f350a.tar.gz
tqscintilla-0c5e20bde1f26abf843fd1c71448b5210b9f350a.zip
cmake: Setting the WITH_GCC_VISIBILITY option has no effect.
Hidden visibility has always been activated depending on the version of the compiler, regardless of WITH_GCC_VISIBILITY value. The config.h file generated during configuration was not used at all. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'qt/qextscintillaglobal.h')
-rw-r--r--qt/qextscintillaglobal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt/qextscintillaglobal.h b/qt/qextscintillaglobal.h
index aebd822..cd0fffe 100644
--- a/qt/qextscintillaglobal.h
+++ b/qt/qextscintillaglobal.h
@@ -46,8 +46,10 @@
#else
-#if __GNUC__ >= 4
+#if defined(__KDE_HAVE_GCC_VISIBILITY)
#define TQEXTSCINTILLA_EXPORT __attribute__ ((visibility("default")))
+#else
+#define TQEXTSCINTILLA_EXPORT
#endif
#endif