summaryrefslogtreecommitdiffstats
path: root/cmake/modulecppexports.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modulecppexports.h.in')
-rw-r--r--cmake/modulecppexports.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modulecppexports.h.in b/cmake/modulecppexports.h.in
index f4e976b540..78793080fb 100644
--- a/cmake/modulecppexports.h.in
+++ b/cmake/modulecppexports.h.in
@@ -16,8 +16,9 @@
# define Q_@module_define_infix@_EXPORT
#endif
-#if !defined(QT_BUILD_@module_define_infix@_LIB) || defined(QT_STATIC)
+#if !defined(QT_BUILD_@module_define_infix@_LIB) && !defined(QT_STATIC)
/* outside library → inline decl + defi */
+/* static builds treat everything as part of the library, so they never inline */
# define QT_@module_define_infix@_INLINE_SINCE(major, minor) inline
# define QT_@module_define_infix@_INLINE_IMPL_SINCE(major, minor) 1
#elif defined(QT_@module_define_infix@_BUILD_REMOVED_API)