PKGBUILDs/extra/qt3/qt3-qglobal.patch

21 lines
795 B
Diff
Raw Normal View History

2010-03-05 13:00:39 +00:00
--- src/tools/qglobal.h
+++ src/tools/qglobal.h
@@ -314,12 +314,16 @@
char, or short. We tell gcc to pack QChars to 16 bits, to avoid
QString bloat. However, gcc 3.4 doesn't allow us to create references to
members of a packed struct. (Pointers are OK, because then you
- supposedly know what you are doing.) */
+ supposedly know what you are doing.)
+ For gcc 4.0.2 pointers dont seem to be ok, */
# if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP)
# define Q_PACKED __attribute__ ((packed))
# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4
# define Q_NO_PACKED_REFERENCE
# endif
+# if __GNUC__ == 4 && __GNUC_MINOR__ >= 0
+# define Q_NO_PACKED_POINTERS
+# endif
# endif
# if !defined(__EXCEPTIONS)
# define Q_NO_EXCEPTIONS