Explorar o código

Fixed compiler warning if dynamic X11 loading isn't enabled.

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
14e13e13c4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/video/x11/SDL_x11dyn.c

+ 2 - 0
src/video/x11/SDL_x11dyn.c

@@ -131,7 +131,9 @@ SDL_DYNX11FN_XGetICValues pXGetICValues = NULL;
 #undef SDL_X11_SYM
 
 
+#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC
 static int x11_load_refcount = 0;
+#endif
 
 void
 SDL_X11_UnloadSymbols(void)