# HG changeset patch # User Sam Lantinga # Date 1078378917 0 # Node ID 95f22f17e44a50b4a1b109c30667d3d05fccccb0 # Parent ae4ab3ac89a9ec04f80c0b4a267a4aef240d3d5a Date: Wed, 3 Mar 2004 12:44:21 +0200 From: "Mike Gorchak" Subject: Misc fixes again I've added custom WM info for the QNX (same as generic for now), which allows to compile all applications, which included SDL_syswm.h directly, otherwise DISABLE_X11 appearing to be not defined and X11 info was used instead, which is wrong. diff -r ae4ab3ac89a9 -r 95f22f17e44a include/SDL_syswm.h --- a/include/SDL_syswm.h Thu Mar 04 05:39:17 2004 +0000 +++ b/include/SDL_syswm.h Thu Mar 04 05:41:57 2004 +0000 @@ -50,7 +50,8 @@ /* This is the structure for custom window manager events */ #if (defined(unix) || defined(__unix__) || defined(_AIX) || defined(__OpenBSD__)) && \ - (!defined(DISABLE_X11) && !defined(__CYGWIN32__) && !defined(ENABLE_NANOX)) + (!defined(DISABLE_X11) && !defined(__CYGWIN32__) && !defined(ENABLE_NANOX) && \ + !defined(__QNXNTO__)) /* AIX is unix, of course, but the native compiler CSet doesn't define unix */ #include #include @@ -147,6 +148,22 @@ int window; /* The RISCOS display window */ } SDL_SysWMinfo; +#elif defined(__QNXNTO__) +#include +#include + +/* The QNX custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int data; +}; + +/* The QNX custom window manager information structure */ +typedef struct { + SDL_version version; + int data; +} SDL_SysWMinfo; + #else /* The generic custom event structure */