Fix X11 dynamic loading.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 24 Oct 2011 23:18:53 -0400
changeset 603050560ca58f80
parent 6029 4a8bbaa52b9b
child 6031 2cb2f3c56573
Fix X11 dynamic loading.

Previous change broke it.
src/video/x11/SDL_x11dyn.c
     1.1 --- a/src/video/x11/SDL_x11dyn.c	Mon Oct 24 21:34:54 2011 -0400
     1.2 +++ b/src/video/x11/SDL_x11dyn.c	Mon Oct 24 23:18:53 2011 -0400
     1.3 @@ -176,6 +176,13 @@
     1.4                  x11libs[i].lib = SDL_LoadObject(x11libs[i].libname);
     1.5              }
     1.6          }
     1.7 +
     1.8 +#define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 1; /* default yes */
     1.9 +#define SDL_X11_SYM(a,fn,x,y,z)
    1.10 +#include "SDL_x11sym.h"
    1.11 +#undef SDL_X11_MODULE
    1.12 +#undef SDL_X11_SYM
    1.13 +
    1.14  #define SDL_X11_MODULE(modname) thismod = &SDL_X11_HAVE_##modname;
    1.15  #define SDL_X11_SYM(a,fn,x,y,z) X11_GetSym(#fn,thismod,(void**)&p##fn);
    1.16  #include "SDL_x11sym.h"