Commit 2384ad5b9e7425f9858908b00082612b7c78ba0f

Sam Lantinga 2013-11-11T03:12:50

Fixed compiling with ISO C90

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 44f3daa..0f0b3e6 100755
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2138,6 +2138,7 @@ static SDL_bool
 ShouldMinimizeOnFocusLoss(SDL_Window * window)
 {
     SDL_bool default_minimize;
+    const char *hint;
 
     if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
         return SDL_FALSE;
@@ -2150,7 +2151,7 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
         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;