From f7e0a9b2b033ec3ec9fd06c6f3c88c0df984f2e6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 10 Oct 2013 02:21:41 -0400 Subject: [PATCH] Patched to compile in C90 mode. --- src/video/raspberry/SDL_rpivideo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video/raspberry/SDL_rpivideo.c b/src/video/raspberry/SDL_rpivideo.c index ae9dc7dc4..dfad9ba76 100644 --- a/src/video/raspberry/SDL_rpivideo.c +++ b/src/video/raspberry/SDL_rpivideo.c @@ -144,6 +144,7 @@ RPI_VideoInit(_THIS) { SDL_VideoDisplay display; SDL_DisplayMode current_mode; + SDL_DisplayData *data; uint32_t w,h; /* Initialize BCM Host */ @@ -168,8 +169,6 @@ RPI_VideoInit(_THIS) display.desktop_mode = current_mode; display.current_mode = current_mode; - SDL_DisplayData *data; - /* Allocate display internal data */ data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData)); if (data == NULL) {