Mercurial > sdl-ios-xcode
diff include/SDL_syswm.h @ 30:57bf11a5efd7
Added initial support for Nano-X (thanks Hsieh-Fu!)
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Fri, 11 May 2001 01:13:35 +0000 |
parents | 74212992fb08 |
children | 13ae3bc6e39a |
line wrap: on
line diff
--- a/include/SDL_syswm.h Fri May 11 00:35:31 2001 +0000 +++ b/include/SDL_syswm.h Fri May 11 01:13:35 2001 +0000 @@ -50,7 +50,7 @@ /* This is the structure for custom window manager events */ #if (defined(unix) || defined(__unix__) || defined(_AIX)) && \ - (!defined(DISABLE_X11) && !defined(__CYGWIN32__)) + (defined(ENABLE_X11) && !defined(__CYGWIN32__)) /* AIX is unix, of course, but the native compiler CSet doesn't define unix */ #include <X11/Xlib.h> #include <X11/Xatom.h> @@ -95,6 +95,21 @@ } info; } SDL_SysWMinfo; +#elif defined(ENABLE_NANOX) +#include <microwin/nano-X.h> + +/* The generic custom event structure */ +struct SDL_SysWMmsg { + SDL_version version; + int data; +}; + +/* The windows custom window manager information structure */ +typedef struct { + SDL_version version ; + GR_WINDOW_ID window ; /* The display window */ +} SDL_SysWMinfo; + #elif defined(WIN32) #include <windows.h>