Fallback implementation of Q_ALIGNOF
authorJoão Abecasis <joao.abecasis@nokia.com>
Mon, 12 Mar 2012 16:14:48 +0000 (17:14 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Mar 2012 18:43:00 +0000 (19:43 +0100)
commitaccfdc85e5cb1816b3eda02ec8d37474259c247e
treee2c0369b07eaac3982f155adc8890532e6799e0a
parent98c3b8a44220096a4e2a3967a4e9742c3605a5cd
Fallback implementation of Q_ALIGNOF

For all practical purposes, the fallback introduced here returns the
desired value. Having a fallback enables unconditional use of Q_ALIGNOF.

For compilers that provide native support for it, Q_ALIGNOF is otherwise
 #defined in qcompilerdetection.h.

Change-Id: Ie148ca8936cbbf8b80fe87771a14797c39a9d30c
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qglobal.h
src/corelib/kernel/qmetaobjectbuilder.cpp
src/corelib/tools/qcontiguouscache.h
src/corelib/tools/qhash.h
src/corelib/tools/qvector.h
tests/auto/corelib/global/qglobal/tst_qglobal.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp