Fixed bug where if X11 is not dynamically loaded, then we think none of the X11 modules are available.
authorSam Lantinga <slouken@libsdl.org>
Mon, 18 Feb 2013 16:24:33 -0800
changeset 6898 d0159180a95f
parent 6897 865811c9f372
child 6899 f75b1bd8eabc
Fixed bug where if X11 is not dynamically loaded, then we think none of the X11 modules are available.
src/video/x11/SDL_x11dyn.c
--- a/src/video/x11/SDL_x11dyn.c	Mon Feb 18 07:59:05 2013 -0800
+++ b/src/video/x11/SDL_x11dyn.c	Mon Feb 18 16:24:33 2013 -0800
@@ -211,6 +211,12 @@
         }
     }
 #else
+#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
+
 #ifdef X_HAVE_UTF8_STRING
     pXCreateIC = XCreateIC;
     pXGetICValues = XGetICValues;