Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix X11 dynamic loading.
Browse files Browse the repository at this point in the history
Previous change broke it.
  • Loading branch information
icculus committed Oct 25, 2011
1 parent 486d5cc commit 74e6e66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/x11/SDL_x11dyn.c
Expand Up @@ -176,6 +176,13 @@ SDL_X11_LoadSymbols(void)
x11libs[i].lib = SDL_LoadObject(x11libs[i].libname);
}
}

#define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 1; /* default yes */
#define SDL_X11_SYM(a,fn,x,y,z)
#include "SDL_x11sym.h"
#undef SDL_X11_MODULE
#undef SDL_X11_SYM

#define SDL_X11_MODULE(modname) thismod = &SDL_X11_HAVE_##modname;
#define SDL_X11_SYM(a,fn,x,y,z) X11_GetSym(#fn,thismod,(void**)&p##fn);
#include "SDL_x11sym.h"
Expand Down

0 comments on commit 74e6e66

Please sign in to comment.