2010-08-09 15:21:07 +02:00
|
|
|
$NetBSD: patch-ad,v 1.9 2010/08/09 13:21:07 tsutsui Exp $
|
2004-10-13 04:08:43 +02:00
|
|
|
|
2010-08-09 15:21:07 +02:00
|
|
|
--- src/tools/qglobal.h.orig 2007-02-02 14:01:04.000000000 +0000
|
|
|
|
+++ src/tools/qglobal.h
|
2004-10-13 04:08:43 +02:00
|
|
|
@@ -63,6 +63,7 @@
|
|
|
|
NETBSD - NetBSD
|
|
|
|
OPENBSD - OpenBSD
|
|
|
|
BSDI - BSD/OS
|
|
|
|
+ INTERIX - Interix
|
|
|
|
IRIX - SGI Irix
|
|
|
|
OSF - HP Tru64 UNIX
|
|
|
|
SCO - SCO OpenServer 5
|
2005-04-13 23:58:05 +02:00
|
|
|
@@ -82,9 +83,9 @@
|
|
|
|
#if defined(__DARWIN_X11__)
|
|
|
|
# define Q_OS_DARWIN
|
|
|
|
#elif defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__))
|
|
|
|
-# define Q_OS_MACX
|
|
|
|
+# define Q_OS_DARWIN
|
|
|
|
#elif defined(__MACOSX__)
|
|
|
|
-# define Q_OS_MACX
|
|
|
|
+# define Q_OS_DARWIN
|
|
|
|
#elif defined(macintosh)
|
|
|
|
# define Q_OS_MAC9
|
|
|
|
#elif defined(__CYGWIN__)
|
2010-08-09 15:21:07 +02:00
|
|
|
@@ -120,6 +121,9 @@
|
2004-10-13 04:08:43 +02:00
|
|
|
#elif defined(__NetBSD__)
|
|
|
|
# define Q_OS_NETBSD
|
2010-08-09 15:21:07 +02:00
|
|
|
# define Q_OS_BSD4
|
2004-10-13 04:08:43 +02:00
|
|
|
+#elif defined(__INTERIX)
|
|
|
|
+# define Q_OS_INTERIX
|
2010-08-09 15:21:07 +02:00
|
|
|
+# define Q_OS_BSD4
|
2004-10-13 04:08:43 +02:00
|
|
|
#elif defined(__OpenBSD__)
|
|
|
|
# define Q_OS_OPENBSD
|
2010-08-09 15:21:07 +02:00
|
|
|
# define Q_OS_BSD4
|
|
|
|
@@ -317,7 +321,7 @@
|
|
|
|
supposedly know what you are doing.) */
|
|
|
|
# if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP)
|
|
|
|
# define Q_PACKED __attribute__ ((packed))
|
|
|
|
-# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4
|
|
|
|
+# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __GNUC__ >= 4
|
|
|
|
# define Q_NO_PACKED_REFERENCE
|
|
|
|
# endif
|
|
|
|
# endif
|