Georg Baum a écrit :
Am Sonntag, 12. März 2006 18:30 schrieb Juergen Spitzmueller:
+///////////////////////////////////////////////////////////////
+// Specific stuff
+#ifdef Q_OS_X11
 #include <X11/Xlib.h>
 #endif
This has to be Q_WS_X11, else I get a compilation error here

There still seems to be a general defines confusion.

Q_OS_MACX does not exist. What Qt has are defines for the operating system (OS) and the window system (WS):

Q_OS_MAC  - defined if the OSX operating system is used
Q_WS_MACX - defined if the aqua window system is used (OSX only)
Q_WS_X11 - defined if the X11 windows system is used (unices, linux and of course also possible on OSX)
Q_WS_WIN  - defined if the window system of MS windows is used

and several more.

Abdel, could you please fix the ifdefs accordingly?

This is Trolltech fault, from the documentation:

Q_OS_X11
Defined for the X Window System.
Q_OS_MAC9
Defined for Mac OS 9.
Q_OS_MACX
Defined for Mac OS X.
Q_OS_WIN32
Defined on Win32 (Windows 98/ME and Windows NT/2000/XP).

Should I provide a corrected patch or have you done something Juergen?

Abdel.




Georg



Reply via email to