소스 검색

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

Sam Lantinga 12 년 전
부모
커밋
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)