Fixed compiler warning if dynamic X11 loading isn't enabled.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Oct 2013 17:38:55 -0700
changeset 7825 10be1bae0f7a
parent 7824 286ab38ef766
child 7826 a87057441d01
Fixed compiler warning if dynamic X11 loading isn't enabled.
src/video/x11/SDL_x11dyn.c
--- a/src/video/x11/SDL_x11dyn.c	Thu Oct 17 17:37:23 2013 -0700
+++ b/src/video/x11/SDL_x11dyn.c	Thu Oct 17 17:38:55 2013 -0700
@@ -131,7 +131,9 @@
 #undef SDL_X11_SYM
 
 
+#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC
 static int x11_load_refcount = 0;
+#endif
 
 void
 SDL_X11_UnloadSymbols(void)