From 2384ad5b9e7425f9858908b00082612b7c78ba0f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 11 Nov 2013 03:12:50 -0800 Subject: [PATCH] Fixed compiling with ISO C90 --- src/video/SDL_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 44f3daa54..0f0b3e6f7 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;