summaryrefslogtreecommitdiff
authoreilers <eilers>2004-07-29 10:50:29 (UTC)
committer eilers <eilers>2004-07-29 10:50:29 (UTC)
commit9981eb853deaeac6ef5f87b94b60984450cb630a (patch) (unidiff)
tree8888c220156b831a70d88ff6b64d8f76386ef9d1
parent08d7594f45f24112f76192ddbcd8ed3f0a651186 (diff)
downloadopie-9981eb853deaeac6ef5f87b94b60984450cb630a.zip
opie-9981eb853deaeac6ef5f87b94b60984450cb630a.tar.gz
opie-9981eb853deaeac6ef5f87b94b60984450cb630a.tar.bz2
Reimplement fix to compile and work on MacOS-X.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--qmake/include/qglobal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qmake/include/qglobal.h b/qmake/include/qglobal.h
index b7e919d..ce209fe 100644
--- a/qmake/include/qglobal.h
+++ b/qmake/include/qglobal.h
@@ -38,256 +38,264 @@
38#ifndef QGLOBAL_H 38#ifndef QGLOBAL_H
39#define QGLOBAL_H 39#define QGLOBAL_H
40 40
41#define QT_VERSION_STR "3.3.2" 41#define QT_VERSION_STR "3.3.2"
42/* 42/*
43 QT_VERSION is (major << 16) + (minor << 8) + patch. 43 QT_VERSION is (major << 16) + (minor << 8) + patch.
44 */ 44 */
45#define QT_VERSION 0x030302 45#define QT_VERSION 0x030302
46 46
47/* 47/*
48 The operating system, must be one of: (Q_OS_x) 48 The operating system, must be one of: (Q_OS_x)
49 49
50 MACX- Mac OS X 50 MACX- Mac OS X
51 MAC9- Mac OS 9 51 MAC9- Mac OS 9
52 DARWIN - Darwin OS (Without Mac OS X) 52 DARWIN - Darwin OS (Without Mac OS X)
53 MSDOS- MS-DOS and Windows 53 MSDOS- MS-DOS and Windows
54 OS2- OS/2 54 OS2- OS/2
55 OS2EMX- XFree86 on OS/2 (not PM) 55 OS2EMX- XFree86 on OS/2 (not PM)
56 WIN32- Win32 (Windows 95/98/ME and Windows NT/2000/XP) 56 WIN32- Win32 (Windows 95/98/ME and Windows NT/2000/XP)
57 CYGWIN- Cygwin 57 CYGWIN- Cygwin
58 SOLARIS- Sun Solaris 58 SOLARIS- Sun Solaris
59 HPUX- HP-UX 59 HPUX- HP-UX
60 ULTRIX- DEC Ultrix 60 ULTRIX- DEC Ultrix
61 LINUX- Linux 61 LINUX- Linux
62 FREEBSD- FreeBSD 62 FREEBSD- FreeBSD
63 NETBSD- NetBSD 63 NETBSD- NetBSD
64 OPENBSD- OpenBSD 64 OPENBSD- OpenBSD
65 BSDI- BSD/OS 65 BSDI- BSD/OS
66 IRIX- SGI Irix 66 IRIX- SGI Irix
67 OSF- HP Tru64 UNIX 67 OSF- HP Tru64 UNIX
68 SCO- SCO OpenServer 5 68 SCO- SCO OpenServer 5
69 UNIXWARE- UnixWare 7, Open UNIX 8 69 UNIXWARE- UnixWare 7, Open UNIX 8
70 AIX- AIX 70 AIX- AIX
71 HURD- GNU Hurd 71 HURD- GNU Hurd
72 DGUX- DG/UX 72 DGUX- DG/UX
73 RELIANT- Reliant UNIX 73 RELIANT- Reliant UNIX
74 DYNIX- DYNIX/ptx 74 DYNIX- DYNIX/ptx
75 QNX- QNX 75 QNX- QNX
76 QNX6- QNX RTP 6.1 76 QNX6- QNX RTP 6.1
77 LYNX- LynxOS 77 LYNX- LynxOS
78 BSD4- Any BSD 4.4 system 78 BSD4- Any BSD 4.4 system
79 UNIX- Any UNIX BSD/SYSV system 79 UNIX- Any UNIX BSD/SYSV system
80*/ 80*/
81 81
82#if defined(__DARWIN_X11__) 82#if defined(__DARWIN_X11__)
83# define Q_OS_DARWIN 83# define Q_OS_DARWIN
84#elif defined(__APPLE__) && defined(__GNUC__) 84#elif defined(__APPLE__) && defined(__GNUC__)
85# define Q_OS_MACX 85# define Q_OS_MACX
86#elif defined(__MACOSX__) 86#elif defined(__MACOSX__)
87# define Q_OS_MACX 87# define Q_OS_MACX
88#elif defined(macintosh) 88#elif defined(macintosh)
89# define Q_OS_MAC9 89# define Q_OS_MAC9
90#elif defined(__CYGWIN__) 90#elif defined(__CYGWIN__)
91# define Q_OS_CYGWIN 91# define Q_OS_CYGWIN
92#elif defined(MSDOS) || defined(_MSDOS) 92#elif defined(MSDOS) || defined(_MSDOS)
93# define Q_OS_MSDOS 93# define Q_OS_MSDOS
94#elif defined(__OS2__) 94#elif defined(__OS2__)
95# if defined(__EMX__) 95# if defined(__EMX__)
96# define Q_OS_OS2EMX 96# define Q_OS_OS2EMX
97# else 97# else
98# define Q_OS_OS2 98# define Q_OS_OS2
99# endif 99# endif
100#elif !defined(SAG_COM) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__)) 100#elif !defined(SAG_COM) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
101# define Q_OS_WIN32 101# define Q_OS_WIN32
102# define Q_OS_WIN64 102# define Q_OS_WIN64
103#elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) 103#elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__))
104# define Q_OS_WIN32 104# define Q_OS_WIN32
105#elif defined(__MWERKS__) && defined(__INTEL__) 105#elif defined(__MWERKS__) && defined(__INTEL__)
106# define Q_OS_WIN32 106# define Q_OS_WIN32
107#elif defined(__sun) || defined(sun) 107#elif defined(__sun) || defined(sun)
108# define Q_OS_SOLARIS 108# define Q_OS_SOLARIS
109#elif defined(hpux) || defined(__hpux) 109#elif defined(hpux) || defined(__hpux)
110# define Q_OS_HPUX 110# define Q_OS_HPUX
111#elif defined(__ultrix) || defined(ultrix) 111#elif defined(__ultrix) || defined(ultrix)
112# define Q_OS_ULTRIX 112# define Q_OS_ULTRIX
113#elif defined(sinix) 113#elif defined(sinix)
114# define Q_OS_RELIANT 114# define Q_OS_RELIANT
115#elif defined(__linux__) || defined(__linux) 115#elif defined(__linux__) || defined(__linux)
116# define Q_OS_LINUX 116# define Q_OS_LINUX
117#elif defined(__FreeBSD__) || defined(__DragonFly__) 117#elif defined(__FreeBSD__) || defined(__DragonFly__)
118# define Q_OS_FREEBSD 118# define Q_OS_FREEBSD
119# define Q_OS_BSD4 119# define Q_OS_BSD4
120#elif defined(__NetBSD__) 120#elif defined(__NetBSD__)
121# define Q_OS_NETBSD 121# define Q_OS_NETBSD
122# define Q_OS_BSD4 122# define Q_OS_BSD4
123#elif defined(__OpenBSD__) 123#elif defined(__OpenBSD__)
124# define Q_OS_OPENBSD 124# define Q_OS_OPENBSD
125# define Q_OS_BSD4 125# define Q_OS_BSD4
126#elif defined(__bsdi__) 126#elif defined(__bsdi__)
127# define Q_OS_BSDI 127# define Q_OS_BSDI
128# define Q_OS_BSD4 128# define Q_OS_BSD4
129#elif defined(__sgi) 129#elif defined(__sgi)
130# define Q_OS_IRIX 130# define Q_OS_IRIX
131#elif defined(__osf__) 131#elif defined(__osf__)
132# define Q_OS_OSF 132# define Q_OS_OSF
133#elif defined(_AIX) 133#elif defined(_AIX)
134# define Q_OS_AIX 134# define Q_OS_AIX
135#elif defined(__Lynx__) 135#elif defined(__Lynx__)
136# define Q_OS_LYNX 136# define Q_OS_LYNX
137#elif defined(__GNU_HURD__) 137#elif defined(__GNU_HURD__)
138# define Q_OS_HURD 138# define Q_OS_HURD
139#elif defined(__DGUX__) 139#elif defined(__DGUX__)
140# define Q_OS_DGUX 140# define Q_OS_DGUX
141#elif defined(__QNXNTO__) 141#elif defined(__QNXNTO__)
142# define Q_OS_QNX6 142# define Q_OS_QNX6
143#elif defined(__QNX__) 143#elif defined(__QNX__)
144# define Q_OS_QNX 144# define Q_OS_QNX
145#elif defined(_SEQUENT_) 145#elif defined(_SEQUENT_)
146# define Q_OS_DYNIX 146# define Q_OS_DYNIX
147#elif defined(_SCO_DS) /* SCO OpenServer 5 + GCC */ 147#elif defined(_SCO_DS) /* SCO OpenServer 5 + GCC */
148# define Q_OS_SCO 148# define Q_OS_SCO
149#elif defined(__USLC__) /* all SCO platforms + UDK or OUDK */ 149#elif defined(__USLC__) /* all SCO platforms + UDK or OUDK */
150# define Q_OS_UNIXWARE 150# define Q_OS_UNIXWARE
151# define Q_OS_UNIXWARE7 151# define Q_OS_UNIXWARE7
152#elif defined(__svr4__) && defined(i386) /* Open UNIX 8 + GCC */ 152#elif defined(__svr4__) && defined(i386) /* Open UNIX 8 + GCC */
153# define Q_OS_UNIXWARE 153# define Q_OS_UNIXWARE
154# define Q_OS_UNIXWARE7 154# define Q_OS_UNIXWARE7
155#elif defined(__MAKEDEPEND__) 155#elif defined(__MAKEDEPEND__)
156#else 156#else
157# error "Qt has not been ported to this OS - talk to qt-bugs@trolltech.com" 157# error "Qt has not been ported to this OS - talk to qt-bugs@trolltech.com"
158#endif 158#endif
159 159
160#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64) 160#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
161# define Q_OS_WIN 161# define Q_OS_WIN
162#endif 162#endif
163 163
164#if defined(Q_OS_MAC9) || defined(Q_OS_MACX) 164#if defined(Q_OS_MAC9) || defined(Q_OS_MACX)
165# define Q_OS_MAC 165# define Q_OS_MAC
166/* We have to prevent qmake to generate makefiles or projectfiles for the Apple build system.
167 * This would work if we would use QT3. But we compile with QT2 which don't use qmake and does nothing
168 * about the MAC platform !! (se)
169 */
170#warning "evil hack here !! (se)"
171#define Q_OS_LINUX
172#undef Q_OS_MACX
173#undef Q_OS_MAC
166#endif 174#endif
167 175
168#if defined(Q_OS_MAC9) || defined(Q_OS_MSDOS) || defined(Q_OS_OS2) || defined(Q_OS_WIN) 176#if defined(Q_OS_MAC9) || defined(Q_OS_MSDOS) || defined(Q_OS_OS2) || defined(Q_OS_WIN)
169# undef Q_OS_UNIX 177# undef Q_OS_UNIX
170#elif !defined(Q_OS_UNIX) 178#elif !defined(Q_OS_UNIX)
171# define Q_OS_UNIX 179# define Q_OS_UNIX
172#endif 180#endif
173 181
174 182
175/* 183/*
176 The compiler, must be one of: (Q_CC_x) 184 The compiler, must be one of: (Q_CC_x)
177 185
178 SYM- Symantec C++ for both PC and Macintosh 186 SYM- Symantec C++ for both PC and Macintosh
179 MPW- MPW C++ 187 MPW- MPW C++
180 MWERKS- Metrowerks CodeWarrior 188 MWERKS- Metrowerks CodeWarrior
181 MSVC- Microsoft Visual C/C++, Intel C++ for Windows 189 MSVC- Microsoft Visual C/C++, Intel C++ for Windows
182 BOR- Borland/Turbo C++ 190 BOR- Borland/Turbo C++
183 WAT- Watcom C++ 191 WAT- Watcom C++
184 GNU- GNU C++ 192 GNU- GNU C++
185 COMEAU- Comeau C++ 193 COMEAU- Comeau C++
186 EDG- Edison Design Group C++ 194 EDG- Edison Design Group C++
187 OC - CenterLine C++ 195 OC - CenterLine C++
188 SUN- Sun WorkShop, Forte Developer, or Sun ONE Studio C++ 196 SUN- Sun WorkShop, Forte Developer, or Sun ONE Studio C++
189 MIPS- MIPSpro C++ 197 MIPS- MIPSpro C++
190 DEC- DEC C++ 198 DEC- DEC C++
191 HP - HPUX C++ 199 HP - HPUX C++
192 HPACC- HPUX ANSI C++ 200 HPACC- HPUX ANSI C++
193 USLC- SCO OUDK, UDK, and UnixWare 2.X C++ 201 USLC- SCO OUDK, UDK, and UnixWare 2.X C++
194 CDS- Reliant C++ 202 CDS- Reliant C++
195 KAI- KAI C++ 203 KAI- KAI C++
196 INTEL- Intel C++ for Linux, Intel C++ for Windows 204 INTEL- Intel C++ for Linux, Intel C++ for Windows
197 HIGHC- MetaWare High C/C++ 205 HIGHC- MetaWare High C/C++
198 PGI- Portland Group C++ 206 PGI- Portland Group C++
199 GHS- Green Hills Optimizing C++ Compilers 207 GHS- Green Hills Optimizing C++ Compilers
200 208
201 Should be sorted most to least authoritative. 209 Should be sorted most to least authoritative.
202*/ 210*/
203 211
204/* Symantec C++ is now Digital Mars */ 212/* Symantec C++ is now Digital Mars */
205#if defined(__DMC__) || defined(__SC__) 213#if defined(__DMC__) || defined(__SC__)
206# define Q_CC_SYM 214# define Q_CC_SYM
207/* "explicit" semantics implemented in 8.1e but keyword recognized since 7.5 */ 215/* "explicit" semantics implemented in 8.1e but keyword recognized since 7.5 */
208# if defined(__SC__) && __SC__ < 0x750 216# if defined(__SC__) && __SC__ < 0x750
209# define Q_NO_EXPLICIT_KEYWORD 217# define Q_NO_EXPLICIT_KEYWORD
210# endif 218# endif
211# define Q_NO_USING_KEYWORD 219# define Q_NO_USING_KEYWORD
212# if !defined(_CPPUNWIND) 220# if !defined(_CPPUNWIND)
213# define Q_NO_EXCEPTIONS 221# define Q_NO_EXCEPTIONS
214# endif 222# endif
215 223
216#elif defined(applec) 224#elif defined(applec)
217# define Q_CC_MPW 225# define Q_CC_MPW
218# define Q_NO_BOOL_TYPE 226# define Q_NO_BOOL_TYPE
219# define Q_NO_EXPLICIT_KEYWORD 227# define Q_NO_EXPLICIT_KEYWORD
220# define Q_NO_USING_KEYWORD 228# define Q_NO_USING_KEYWORD
221 229
222#elif defined(__MWERKS__) 230#elif defined(__MWERKS__)
223# define Q_CC_MWERKS 231# define Q_CC_MWERKS
224/* "explicit" recognized since 4.0d1 */ 232/* "explicit" recognized since 4.0d1 */
225# define QMAC_PASCAL pascal 233# define QMAC_PASCAL pascal
226 234
227#elif defined(_MSC_VER) 235#elif defined(_MSC_VER)
228# define Q_CC_MSVC 236# define Q_CC_MSVC
229/* proper support of bool for _MSC_VER >= 1100 */ 237/* proper support of bool for _MSC_VER >= 1100 */
230# define Q_CANNOT_DELETE_CONSTANT 238# define Q_CANNOT_DELETE_CONSTANT
231# define Q_INLINE_TEMPLATES inline 239# define Q_INLINE_TEMPLATES inline
232/* Visual C++.Net issues for _MSC_VER >= 1300 */ 240/* Visual C++.Net issues for _MSC_VER >= 1300 */
233# if _MSC_VER >= 1300 241# if _MSC_VER >= 1300
234# define Q_CC_MSVC_NET 242# define Q_CC_MSVC_NET
235# if _MSC_VER < 1310 || defined(Q_OS_WIN64) 243# if _MSC_VER < 1310 || defined(Q_OS_WIN64)
236# define Q_TYPENAME 244# define Q_TYPENAME
237# endif 245# endif
238# endif 246# endif
239/* Intel C++ disguising as Visual C++: the `using' keyword avoids warnings */ 247/* Intel C++ disguising as Visual C++: the `using' keyword avoids warnings */
240# if defined(__INTEL_COMPILER) 248# if defined(__INTEL_COMPILER)
241# define Q_CC_INTEL 249# define Q_CC_INTEL
242# if !defined(__EXCEPTIONS) 250# if !defined(__EXCEPTIONS)
243# define Q_NO_EXCEPTIONS 251# define Q_NO_EXCEPTIONS
244# endif 252# endif
245# else 253# else
246# define Q_NO_USING_KEYWORD /* ### check "using" status */ 254# define Q_NO_USING_KEYWORD /* ### check "using" status */
247# endif 255# endif
248 256
249#elif defined(__BORLANDC__) || defined(__TURBOC__) 257#elif defined(__BORLANDC__) || defined(__TURBOC__)
250# define Q_CC_BOR 258# define Q_CC_BOR
251# if __BORLANDC__ < 0x502 259# if __BORLANDC__ < 0x502
252# define Q_NO_BOOL_TYPE 260# define Q_NO_BOOL_TYPE
253# define Q_NO_EXPLICIT_KEYWORD 261# define Q_NO_EXPLICIT_KEYWORD
254# endif 262# endif
255# define Q_NO_USING_KEYWORD /* ### check "using" status */ 263# define Q_NO_USING_KEYWORD /* ### check "using" status */
256 264
257#elif defined(__WATCOMC__) 265#elif defined(__WATCOMC__)
258# define Q_CC_WAT 266# define Q_CC_WAT
259# if defined(Q_OS_QNX4) 267# if defined(Q_OS_QNX4)
260/* compiler flags */ 268/* compiler flags */
261# define Q_TYPENAME 269# define Q_TYPENAME
262# define Q_NO_BOOL_TYPE 270# define Q_NO_BOOL_TYPE
263# define Q_CANNOT_DELETE_CONSTANT 271# define Q_CANNOT_DELETE_CONSTANT
264# define mutable 272# define mutable
265/* ??? */ 273/* ??? */
266# define Q_BROKEN_TEMPLATE_SPECIALIZATION 274# define Q_BROKEN_TEMPLATE_SPECIALIZATION
267/* no template classes in QVariant */ 275/* no template classes in QVariant */
268# define QT_NO_TEMPLATE_VARIANT 276# define QT_NO_TEMPLATE_VARIANT
269/* Wcc does not fill in functions needed by valuelists, maps, and 277/* Wcc does not fill in functions needed by valuelists, maps, and
270 valuestacks implicitly */ 278 valuestacks implicitly */
271# define Q_FULL_TEMPLATE_INSTANTIATION 279# define Q_FULL_TEMPLATE_INSTANTIATION
272/* can we just compare the structures? */ 280/* can we just compare the structures? */
273# define Q_FULL_TEMPLATE_INSTANTIATION_MEMCMP 281# define Q_FULL_TEMPLATE_INSTANTIATION_MEMCMP
274/* these are not useful to our customers */ 282/* these are not useful to our customers */
275# define QT_QWS_NO_SHM 283# define QT_QWS_NO_SHM
276# define QT_NO_QWS_MULTIPROCESS 284# define QT_NO_QWS_MULTIPROCESS
277# define QT_NO_SQL 285# define QT_NO_SQL
278# define QT_NO_QWS_CURSOR 286# define QT_NO_QWS_CURSOR
279# endif 287# endif
280 288
281#elif defined(__GNUC__) 289#elif defined(__GNUC__)
282# define Q_CC_GNU 290# define Q_CC_GNU
283# define Q_C_CALLBACKS 291# define Q_C_CALLBACKS
284# if __GNUC__ == 2 && __GNUC_MINOR__ <= 7 292# if __GNUC__ == 2 && __GNUC_MINOR__ <= 7
285# define Q_FULL_TEMPLATE_INSTANTIATION 293# define Q_FULL_TEMPLATE_INSTANTIATION
286# endif 294# endif
287/* GCC 2.95 knows "using" but does not support it correctly */ 295/* GCC 2.95 knows "using" but does not support it correctly */
288# if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 296# if __GNUC__ == 2 && __GNUC_MINOR__ <= 95
289# define Q_NO_USING_KEYWORD 297# define Q_NO_USING_KEYWORD
290# endif 298# endif
291/* GCC 3.1 and GCC 3.2 wrongly define _SB_CTYPE_MACROS on HP-UX */ 299/* GCC 3.1 and GCC 3.2 wrongly define _SB_CTYPE_MACROS on HP-UX */
292# if defined(Q_OS_HPUX) && __GNUC__ == 3 && __GNUC_MINOR__ >= 1 300# if defined(Q_OS_HPUX) && __GNUC__ == 3 && __GNUC_MINOR__ >= 1
293# define Q_WRONG_SB_CTYPE_MACROS 301# define Q_WRONG_SB_CTYPE_MACROS