Actually, this is dumb, just simplify this for now. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 03 Feb 2007 08:17:12 +0000
branchSDL-1.2
changeset 39086e41f5d80198
parent 3907 a813fff94165
child 3909 6832b00d3594
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
     1.1 --- a/src/loadso/dlopen/SDL_sysloadso.c	Sat Feb 03 08:11:45 2007 +0000
     1.2 +++ b/src/loadso/dlopen/SDL_sysloadso.c	Sat Feb 03 08:17:12 2007 +0000
     1.3 @@ -45,8 +45,6 @@
     1.4  {
     1.5  	void *symbol = dlsym(handle, name);
     1.6  	if ( symbol == NULL ) {
     1.7 -
     1.8 -#ifdef DLOPEN_NEED_UNDERSCORE
     1.9  		/* append an underscore for platforms that need that. */
    1.10  		size_t len = 1+SDL_strlen(name)+1;
    1.11  		char *_name = SDL_stack_alloc(char, len);
    1.12 @@ -54,10 +52,6 @@
    1.13  		SDL_strlcpy(&_name[1], name, len);
    1.14  		symbol = dlsym(handle, _name);
    1.15  		SDL_stack_free(_name);
    1.16 -#else
    1.17 -		symbol = dlsym(handle, name);
    1.18 -#endif
    1.19 -
    1.20  		if ( symbol == NULL ) {
    1.21  			SDL_SetError("Failed loading %s: %s", name, (const char *)dlerror());
    1.22  		}