summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorTomasz Duda <tomaszduda23@gmail.com>2012-11-17 17:56:16 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-17 20:37:52 (GMT)
commitc9424fa6687b5d83227c8c07df1e3806b8f487b5 (patch)
tree63725f051eb5e440c284a3b99a7feb9aa710c00f /src/corelib/tools
parentd74dbaaa325e5937485a9b3cdcadb55f2ecc111a (diff)
downloadQt-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')
-rw-r--r--src/corelib/tools/qchar.h6
-rw-r--r--src/corelib/tools/qlocale.h7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/corelib/tools/qchar.h b/src/corelib/tools/qchar.h
index 953f3a0..cfa1ccc 100644
--- a/src/corelib/tools/qchar.h
+++ b/src/corelib/tools/qchar.h
@@ -360,7 +360,11 @@ private:
QChar(uchar c);
#endif
ushort ucs;
-};
+}
+#if (defined(__arm__) && defined(QT_NO_ARM_EABI))
+ Q_PACKED
+#endif
+;
Q_DECLARE_TYPEINFO(QChar, Q_MOVABLE_TYPE);
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.