diff options
author | Tomasz Duda <tomaszduda23@gmail.com> | 2012-11-17 17:56:16 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-17 20:37:52 (GMT) |
commit | c9424fa6687b5d83227c8c07df1e3806b8f487b5 (patch) | |
tree | 63725f051eb5e440c284a3b99a7feb9aa710c00f /src/corelib/tools/qlocale.h | |
parent | d74dbaaa325e5937485a9b3cdcadb55f2ecc111a (diff) | |
download | Qt-c9424fa6687b5d83227c8c07df1e3806b8f487b5.zip Qt-c9424fa6687b5d83227c8c07df1e3806b8f487b5.tar.gz Qt-c9424fa6687b5d83227c8c07df1e3806b8f487b5.tar.bz2 |
QString doesn't work with old ABI on ARM.
QString doesn't work on ARM platform with old ABI because QChar has
wrong size. Macro Q_PACKED was removed by commit
1ec8acd77b6c048f5a68887ac7750b0764ade598. Some projects still use
old ABI. It is better to check version of ABI during compiling.
Task-number: QTBUG-15784
Change-Id: I92180b864679e01363fa837260707b67674d0a26
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qlocale.h')
-rw-r--r-- | src/corelib/tools/qlocale.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index 6202236..b19d847 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -786,7 +786,12 @@ public: struct Data { quint16 index; quint16 numberOptions; - }; + } +#if (defined(__arm__) || defined(QT_NO_ARM_EABI)) + Q_PACKED +#endif + ; + private: friend struct QLocalePrivate; // ### We now use this field to pack an index into locale_data and NumberOptions. |