From 919b12d969ded1d004f0ba2f7bf303c034bdd204 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 16 Jun 2017 22:55:02 -0700 Subject: qglobal.h: fix build in assembler mode QT_CONFIG and some other macros are unavailable there. Change-Id: Ia53158e207a94bf49489fffd14c8d306e2dbd9d2 Reviewed-by: Oswald Buddenhagen --- src/corelib/global/qglobal.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/corelib/global/qglobal.h') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 0628b524fb..dccbe52ab3 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -46,8 +46,9 @@ # include # include #endif - -#include +#ifndef __ASSEMBLER__ +# include +#endif /* QT_VERSION is (major << 16) + (minor << 8) + patch. @@ -188,6 +189,7 @@ namespace QT_NAMESPACE {} # define QT_LARGEFILE_SUPPORT 64 #endif +#ifndef __ASSEMBLER__ QT_BEGIN_NAMESPACE /* @@ -1173,5 +1175,6 @@ QT_END_NAMESPACE #include #endif /* __cplusplus */ +#endif /* !__ASSEMBLER__ */ #endif /* QGLOBAL_H */ -- cgit v1.2.3