Fixed compiling with ISO C90
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Nov 2013 03:12:50 -0800
changeset 7954 712d8544f8a1
parent 7953 255ca6c77e58
child 7955 9446f2fbe4f0
Fixed compiling with ISO C90
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Mon Nov 11 03:02:42 2013 -0800
+++ b/src/video/SDL_video.c	Mon Nov 11 03:12:50 2013 -0800
@@ -2138,6 +2138,7 @@
 ShouldMinimizeOnFocusLoss(SDL_Window * window)
 {
     SDL_bool default_minimize;
+    const char *hint;
 
     if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
         return SDL_FALSE;
@@ -2150,7 +2151,7 @@
         default_minimize = SDL_TRUE;
     }
 
-    const char *hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
+    hint = SDL_GetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS);
     if (hint) {
         if (*hint == '0') {
             return SDL_FALSE;