From b123ea4fc20270d3a1a5f025bf27b4b4a44a355b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 3 Feb 2007 08:17:12 +0000 Subject: [PATCH] Actually, this is dumb, just simplify this for now. (But what if this finds the wrong symbol? We really should make this a ./configure test and only do one dlsym or the other depending on the platform...) Reference Bugzilla #354. --ryan. --- src/loadso/dlopen/SDL_sysloadso.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/loadso/dlopen/SDL_sysloadso.c b/src/loadso/dlopen/SDL_sysloadso.c index 05e4529ee..550acad3e 100644 --- a/src/loadso/dlopen/SDL_sysloadso.c +++ b/src/loadso/dlopen/SDL_sysloadso.c @@ -45,8 +45,6 @@ void *SDL_LoadFunction(void *handle, const char *name) { void *symbol = dlsym(handle, name); if ( symbol == NULL ) { - -#ifdef DLOPEN_NEED_UNDERSCORE /* append an underscore for platforms that need that. */ size_t len = 1+SDL_strlen(name)+1; char *_name = SDL_stack_alloc(char, len); @@ -54,10 +52,6 @@ void *SDL_LoadFunction(void *handle, const char *name) SDL_strlcpy(&_name[1], name, len); symbol = dlsym(handle, _name); SDL_stack_free(_name); -#else - symbol = dlsym(handle, name); -#endif - if ( symbol == NULL ) { SDL_SetError("Failed loading %s: %s", name, (const char *)dlerror()); }