SDL_X11_HAVE_* should default (and reset) to zero.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 24 Oct 2011 12:07:41 -0400
changeset 6026 a7142857e885
parent 6025 54b7a82f0e05
child 6027 56185b574d61
SDL_X11_HAVE_* should default (and reset) to zero.
src/video/x11/SDL_x11dyn.c
--- a/src/video/x11/SDL_x11dyn.c	Mon Oct 24 12:07:13 2011 -0400
+++ b/src/video/x11/SDL_x11dyn.c	Mon Oct 24 12:07:41 2011 -0400
@@ -119,7 +119,7 @@
 #endif
 
 /* These SDL_X11_HAVE_* flags are here whether you have dynamic X11 or not. */
-#define SDL_X11_MODULE(modname) int SDL_X11_HAVE_##modname = 1;
+#define SDL_X11_MODULE(modname) int SDL_X11_HAVE_##modname = 0;
 #define SDL_X11_SYM(rc,fn,params,args,ret)
 #include "SDL_x11sym.h"
 #undef SDL_X11_MODULE
@@ -138,7 +138,7 @@
             int i;
 
             /* set all the function pointers to NULL. */
-#define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 1;
+#define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 0;
 #define SDL_X11_SYM(rc,fn,params,args,ret) p##fn = NULL;
 #include "SDL_x11sym.h"
 #undef SDL_X11_MODULE