From 91e103d7571e3df88c70e0f043ccac0670191b62 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Thu, 14 Aug 2014 11:47:47 +0200 Subject: Fix x86/32-bit build when using an old version of gcc Versions prior to 4.3 don't define __SIZEOF_POINTER__ macro. Change-Id: I3144329778acd276e2fb885cb197a4532a15da70 Reviewed-by: Thiago Macieira --- src/corelib/global/qprocessordetection.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/global/qprocessordetection.h b/src/corelib/global/qprocessordetection.h index c9fb728593..47d6dcd7f6 100644 --- a/src/corelib/global/qprocessordetection.h +++ b/src/corelib/global/qprocessordetection.h @@ -169,6 +169,7 @@ #elif defined(__i386) || defined(__i386__) || defined(_M_IX86) # define Q_PROCESSOR_X86_32 # define Q_BYTE_ORDER Q_LITTLE_ENDIAN +# define Q_PROCESSOR_WORDSIZE 4 /* * We define Q_PROCESSOR_X86 == 6 for anything above a equivalent or better -- cgit v1.2.3