From c1118b0c6f13dc8171a5cab3f871f099f69703f8 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 4 Oct 2020 00:01:09 +0300 Subject: [PATCH] QT_MOC_CPP is never defined so remove checks for it in qglobal header Signed-off-by: Ivailo Monev --- src/core/global/qglobal.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/core/global/qglobal.h b/src/core/global/qglobal.h index fbe20ef4a..5552cd34c 100644 --- a/src/core/global/qglobal.h +++ b/src/core/global/qglobal.h @@ -271,11 +271,9 @@ QT_USE_NAMESPACE # define Q_LIKELY(expr) __builtin_expect(!!(expr), true) # define Q_UNLIKELY(expr) __builtin_expect(!!(expr), false) # define Q_FUNC_INFO __PRETTY_FUNCTION__ -# if !defined(QT_MOC_CPP) -# define Q_PACKED __attribute__ ((__packed__)) -# ifndef __ARM_EABI__ -# define QT_NO_ARM_EABI -# endif +# define Q_PACKED __attribute__ ((__packed__)) +# ifndef __ARM_EABI__ +# define QT_NO_ARM_EABI # endif # if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) /* C++0x features supported in GCC 4.3: */ @@ -302,9 +300,7 @@ QT_USE_NAMESPACE # define Q_LIKELY(expr) __builtin_expect(!!(expr), true) # define Q_UNLIKELY(expr) __builtin_expect(!!(expr), false) # define Q_FUNC_INFO __PRETTY_FUNCTION__ -# if !defined(QT_MOC_CPP) -# define Q_PACKED __attribute__ ((__packed__)) -# endif +# define Q_PACKED __attribute__ ((__packed__)) # if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) /* Detect C++ features using __has_feature(), see http://clang.llvm.org/docs/LanguageExtensions.html#cxx11 */ # if __has_feature(cxx_generalized_initializers) -- 2.11.0