Commit 62babe19 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fix X11 dynamic loading.

Previous change broke it.
parent ee56d1a7
...@@ -176,6 +176,13 @@ SDL_X11_LoadSymbols(void) ...@@ -176,6 +176,13 @@ SDL_X11_LoadSymbols(void)
x11libs[i].lib = SDL_LoadObject(x11libs[i].libname); 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_MODULE(modname) thismod = &SDL_X11_HAVE_##modname;
#define SDL_X11_SYM(a,fn,x,y,z) X11_GetSym(#fn,thismod,(void**)&p##fn); #define SDL_X11_SYM(a,fn,x,y,z) X11_GetSym(#fn,thismod,(void**)&p##fn);
#include "SDL_x11sym.h" #include "SDL_x11sym.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment