diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index aa9446221bc..cd4b4a29a9b 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -549,7 +549,7 @@ using qsizetype = QIntegerForSizeof::Signed; # define Q_ALWAYS_INLINE inline #endif -#ifdef Q_CC_GNU +#if defined(Q_CC_GNU) && defined(Q_OS_WIN) # define QT_INIT_METAOBJECT __attribute__((init_priority(101))) #else # define QT_INIT_METAOBJECT