src/dynapi/SDL_dynapi.c
changeset 10565 15ba7a201f0a
parent 10003 d91a2c45825e
child 10737 3406a0f8b041
     1.1 --- a/src/dynapi/SDL_dynapi.c	Sun Oct 30 21:01:46 2016 +0100
     1.2 +++ b/src/dynapi/SDL_dynapi.c	Tue Nov 01 10:30:46 2016 -0700
     1.3 @@ -216,21 +216,7 @@
     1.4      return retval;
     1.5  }
     1.6  
     1.7 -#elif defined(__HAIKU__)
     1.8 -#include <os/kernel/image.h>
     1.9 -static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
    1.10 -{
    1.11 -    image_id lib = load_add_on(fname);
    1.12 -    void *retval = NULL;
    1.13 -    if (lib >= 0) {
    1.14 -        if (get_image_symbol(lib, sym, B_SYMBOL_TYPE_TEXT, &retval) != B_NO_ERROR) {
    1.15 -            unload_add_on(lib);
    1.16 -            retval = NULL;
    1.17 -        }
    1.18 -    }
    1.19 -    return retval;
    1.20 -}
    1.21 -#elif defined(unix) || defined(__unix__) || defined(__APPLE__)
    1.22 +#elif defined(unix) || defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
    1.23  #include <dlfcn.h>
    1.24  static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
    1.25  {