Patched to compile in C90 mode.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 10 Oct 2013 02:21:41 -0400
changeset 7799 a67ccdd0c03a
parent 7798 795fc221d417
child 7800 76e4b6825efc
Patched to compile in C90 mode.
src/video/raspberry/SDL_rpivideo.c
--- a/src/video/raspberry/SDL_rpivideo.c	Thu Oct 10 02:06:14 2013 -0400
+++ b/src/video/raspberry/SDL_rpivideo.c	Thu Oct 10 02:21:41 2013 -0400
@@ -144,6 +144,7 @@
 {
     SDL_VideoDisplay display;
     SDL_DisplayMode current_mode;
+    SDL_DisplayData *data;
     uint32_t w,h;
 
     /* Initialize BCM Host */
@@ -168,8 +169,6 @@
     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) {