Fixed ifdef condition in QJson resulting in big endian breakage.

Change-Id: I3d36d75ff95ad2fe2fcbbe262f9782f0709d7041
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Konstantin Tokarev 2012-09-23 18:02:55 +04:00 committed by The Qt Project
parent 8b7b6b6969
commit 609d2eebe8
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE
namespace QJsonPrivate
{
#ifdef Q_LITTLE_ENDIAN
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
#define Q_TO_LITTLE_ENDIAN(x) (x)
#else
#define Q_TO_LITTLE_ENDIAN(x) ( ((x & 0xff) << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | ((x & 0xff000000) >> 24) )