Commit ff0632ca authored by Ryan C. Gordon's avatar Ryan C. Gordon

Minor bit of debug output added to dynamic X11 code.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401239
parent 8f549cb8
...@@ -28,16 +28,25 @@ static char rcsid = ...@@ -28,16 +28,25 @@ static char rcsid =
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent library loading routines */ /* 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... */ /* !!! FIXME: includes so I don't have to update all the project files... */
#define SDL_INTERNAL_BUILDING_LOADSO 1 #define SDL_INTERNAL_BUILDING_LOADSO 1
#if defined(USE_DUMMY_LOADSO) #if defined(USE_DUMMY_LOADSO)
# include "loadso/dummy/SDL_loadso.c" # include "loadso/dummy/SDL_loadso.c"
#elif defined(USE_DLOPEN)
# include "loadso/dlopen/SDL_loadso.c"
#elif defined(MACOSX) #elif defined(MACOSX)
# include "loadso/macosx/SDL_loadso.c" # include "loadso/macosx/SDL_loadso.c"
#elif defined(macintosh) #elif defined(macintosh)
# include "loadso/macos/SDL_loadso.c" # include "loadso/macos/SDL_loadso.c"
#elif defined(USE_DLOPEN)
# include "loadso/dlopen/SDL_loadso.c"
#elif defined(WIN32) || defined(_WIN32_WCE) #elif defined(WIN32) || defined(_WIN32_WCE)
# include "loadso/windows/SDL_loadso.c" # include "loadso/windows/SDL_loadso.c"
#elif defined(__BEOS__) #elif defined(__BEOS__)
......
...@@ -56,7 +56,8 @@ static void *X11_GetSym(int required, const char *fnname, int *rc) ...@@ -56,7 +56,8 @@ static void *X11_GetSym(int required, const char *fnname, int *rc)
if (fn != NULL) if (fn != NULL)
printf("X11: Found '%s' in libXext (%p)\n", fnname, fn); printf("X11: Found '%s' in libXext (%p)\n", fnname, fn);
else else
printf("X11: Symbol '%s' NOT FOUND!\n", fnname); printf("X11: Symbol '%s' NOT FOUND!%s\n", fnname
required ? "" : " (...but not required!)");
#endif #endif
} }
*rc = ((fn != NULL) || (!required)); *rc = ((fn != NULL) || (!required));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment