Fail when QT_POINTER_SIZE is not set

Some cross compile setups don't have special treatment
and don't have a configure check. To notice this early
in the build fail at this state. One example is to cross
compile from Windows for eg QNX or even linux embedded.

If QT_POINTER_SIZE is not set, later v4 build in
qtdeclarative is failing with a unmeaningful compile
error.

Change-Id: Iff9498d916371241b0b044b9543f9cd2946ecf42
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
Andreas Holzammer 2013-10-29 14:50:46 +01:00 committed by The Qt Project
parent 6ea7336e4a
commit 0731dbcd19

View File

@ -198,6 +198,8 @@ typedef quint64 qulonglong;
# define QT_POINTER_SIZE 4 # define QT_POINTER_SIZE 4
# elif defined(Q_OS_ANDROID) # elif defined(Q_OS_ANDROID)
# define QT_POINTER_SIZE 4 // ### Add auto-detection to Windows configure # define QT_POINTER_SIZE 4 // ### Add auto-detection to Windows configure
# elif !defined(QT_BUILD_MOC) && !defined(QT_BUILD_QMAKE) && !defined(QT_BUILD_CONFIGURE)
# error could not determine QT_POINTER_SIZE
# endif # endif
#endif #endif