diff src/SDL_loadso.c @ 1236:ed252764287a

Minor bit of debug output added to dynamic X11 code.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 06 Jan 2006 20:57:59 +0000
parents 173c063d4f55
children c9b51268668f
line wrap: on
line diff
--- a/src/SDL_loadso.c	Fri Jan 06 20:56:13 2006 +0000
+++ b/src/SDL_loadso.c	Fri Jan 06 20:57:59 2006 +0000
@@ -28,16 +28,25 @@
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 /* System dependent library loading routines                           */
 
+/*
+ * Mac OS X >= 10.3 are guaranteed to have dlopen support in a system
+ *  framework, which means we don't have to roll our own on non-PowerPC
+ *  systems to guarantee compatibility (x86 Macs started at 10.4).   --ryan.
+ */
+#if ( (defined(MACOSX)) && (!defined(__POWERPC__)) )
+#  define USE_DLOPEN 1
+#endif
+
 /* !!! FIXME: includes so I don't have to update all the project files... */
 #define SDL_INTERNAL_BUILDING_LOADSO 1
 #if defined(USE_DUMMY_LOADSO)
 # include "loadso/dummy/SDL_loadso.c"
+#elif defined(USE_DLOPEN)
+# include "loadso/dlopen/SDL_loadso.c"
 #elif defined(MACOSX)
 # include "loadso/macosx/SDL_loadso.c"
 #elif defined(macintosh)
 # include "loadso/macos/SDL_loadso.c"
-#elif defined(USE_DLOPEN)
-# include "loadso/dlopen/SDL_loadso.c"
 #elif defined(WIN32) || defined(_WIN32_WCE)
 # include "loadso/windows/SDL_loadso.c"
 #elif defined(__BEOS__)