Previous 199869 Revisions Next

r29610 Sunday 13th April, 2014 at 16:38:54 UTC by R. Belmont
SDL: fix OS X compile with non-official SDL [R. Belmont, based on a patch by Fernando Lemos]
[src/osd/sdl]osd_opengl.h sdl.mak

trunk/src/osd/sdl/sdl.mak
r29609r29610
478478INCPATH += `sdl-config --cflags | sed 's:/SDL::'`
479479CCOMFLAGS += -DNO_SDL_GLEXT
480480# Remove libSDLmain, as its symbols conflict with SDLMain_tmpl.m
481LIBS += `sdl-config --libs | sed 's/-lSDLmain//'` -lpthread
481LIBS += `sdl-config --libs | sed 's/-lSDLmain//'` -lpthread -framework OpenGL
482482DEFS += -DMACOSX_USE_LIBSDL
483483endif   # MACOSX_USE_LIBSDL
484484
trunk/src/osd/sdl/osd_opengl.h
r29609r29610
4545   #define APIENTRY
4646   #endif
4747
48   #include "GL/gl.h"
49   #include "GL/glext.h"
48   #include <OpenGL/gl.h>
49   #include <OpenGL/glext.h>
5050
5151   typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum target);
5252#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team