瀏覽代碼

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

Sam Lantinga 11 年之前
父節點
當前提交
14e13e13c4
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)