# HG changeset patch # User Ryan C. Gordon # Date 1170490632 0 # Node ID 6e41f5d8019816b7cc7a1e373ab946a2e6cd8cbb # Parent a813fff9416552566fdc6264614bd94913516d50 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. diff -r a813fff94165 -r 6e41f5d80198 src/loadso/dlopen/SDL_sysloadso.c --- a/src/loadso/dlopen/SDL_sysloadso.c Sat Feb 03 08:11:45 2007 +0000 +++ b/src/loadso/dlopen/SDL_sysloadso.c Sat Feb 03 08:17:12 2007 +0000 @@ -45,8 +45,6 @@ { 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 @@ 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()); }