Fix X11 dynamic loading.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 24 Oct 2011 23:18:53 -0400
changeset 6030 50560ca58f80
parent 6029 4a8bbaa52b9b
child 6031 2cb2f3c56573
Fix X11 dynamic loading. Previous change broke it.
src/video/x11/SDL_x11dyn.c
--- a/src/video/x11/SDL_x11dyn.c	Mon Oct 24 21:34:54 2011 -0400
+++ b/src/video/x11/SDL_x11dyn.c	Mon Oct 24 23:18:53 2011 -0400
@@ -176,6 +176,13 @@
                 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"