comparison src/video/SDL_video.c @ 916:46916168361d

Date: Sun, 25 Jul 2004 23:10:03 +0800 From: Chris Taylor Subject: SDL for Macintosh Programmer's Workshop: removed dynamic loading I'm working on a game called D2X which uses SDL, and I recently ported it to Mac OS 9. I used MPW to build it. It uses OpenGL. To get it to work, I had to build SDL so it doesn't dynamically load OpenGL. This is because I don't think MPW supports dynamic loading. The following patch makes sure when SDL is built under MPW, dynamic loading of shared libraries is disabled.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 25 Jul 2004 19:43:56 +0000
parents 4ab6d1fd028f
children cdea7cbc3e23
comparison
equal deleted inserted replaced
915:01cddd0f2efb 916:46916168361d
741 741
742 #ifdef HAVE_OPENGL 742 #ifdef HAVE_OPENGL
743 /* Load GL symbols (before MakeCurrent, where we need glGetString). */ 743 /* Load GL symbols (before MakeCurrent, where we need glGetString). */
744 if ( flags & (SDL_OPENGL | SDL_OPENGLBLIT) ) { 744 if ( flags & (SDL_OPENGL | SDL_OPENGLBLIT) ) {
745 745
746 #ifdef __QNXNTO__ 746 #if (defined(macintosh) && !defined(__MWERKS__))
747 #if (_NTO_VERSION < 630) 747 #define __SDL_NOGETPROCADDR__
748 #define __SDL_NOGETPROCADDR__ 748 #elif defined(__QNXNTO__) && (_NTO_VERSION < 630)
749 #endif /* 6.3.0 */ 749 #define __SDL_NOGETPROCADDR__
750 #endif /* __QNXNTO__ */ 750 #endif
751
752 #ifdef __SDL_NOGETPROCADDR__ 751 #ifdef __SDL_NOGETPROCADDR__
753 #define SDL_PROC(ret,func,params) video->func=func; 752 #define SDL_PROC(ret,func,params) video->func=func;
754 #else 753 #else
755 #define SDL_PROC(ret,func,params) \ 754 #define SDL_PROC(ret,func,params) \
756 do { \ 755 do { \