mirror of https://github.com/qt/qtbase.git
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:
parent
8b7b6b6969
commit
609d2eebe8
|
@ -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) )
|
||||
|
|
Loading…
Reference in New Issue