diff src/video/x11/SDL_x11opengl.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 7f684f249ec9
children d559edc85610
line wrap: on
line diff
--- a/src/video/x11/SDL_x11opengl.c	Sat Sep 05 07:13:01 2009 +0000
+++ b/src/video/x11/SDL_x11opengl.c	Sat Sep 05 07:33:54 2009 +0000
@@ -39,6 +39,10 @@
 #define DEFAULT_OPENGL	"libGL.so.1"
 #endif
 
+#ifndef GLX_NONE_EXT
+#define GLX_NONE_EXT                       0x8000
+#endif
+
 #ifndef GLX_ARB_multisample
 #define GLX_ARB_multisample
 #define GLX_SAMPLE_BUFFERS_ARB             100000