Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11window.c @ 3241:08c5964f2a34
Fixed a few issues compiling with Mac OS X 10.6
Unfortunately the audio and cdrom systems do not build at all, and if you
disable those, SDL still fails to link with these errors:
Undefined symbols:
"_OBJC_IVAR_$_NSScreen._frame", referenced from:
-[NSScreen(NSScreenAccess) setFrame:] in SDL_cocoamodes.o
"_KLGetKeyboardLayoutProperty", referenced from:
_UpdateKeymap in SDL_cocoakeyboard.o
_UpdateKeymap in SDL_cocoakeyboard.o
"_KLGetCurrentKeyboardLayout", referenced from:
_UpdateKeymap in SDL_cocoakeyboard.o
ld: symbol(s) not found
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Sep 2009 07:33:54 +0000 |
parents | 5859d0a0c519 |
children | 64ce267332c6 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c Sat Sep 05 07:13:01 2009 +0000 +++ b/src/video/x11/SDL_x11window.c Sat Sep 05 07:33:54 2009 +0000 @@ -21,7 +21,6 @@ */ #include "SDL_config.h" -#include "SDL_syswm.h" #include "../SDL_sysvideo.h" #include "../../events/SDL_keyboard_c.h" #include "../../events/SDL_mouse_c.h" @@ -35,6 +34,8 @@ #include "SDL_x11opengles.h" #endif +#include "SDL_syswm.h" + #define _NET_WM_STATE_REMOVE 0l #define _NET_WM_STATE_ADD 1l #define _NET_WM_STATE_TOGGLE 2l