Patched to compile in C90 mode.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 10 Oct 2013 02:21:41 -0400
changeset 7799a67ccdd0c03a
parent 7798 795fc221d417
child 7800 76e4b6825efc
Patched to compile in C90 mode.
src/video/raspberry/SDL_rpivideo.c
     1.1 --- a/src/video/raspberry/SDL_rpivideo.c	Thu Oct 10 02:06:14 2013 -0400
     1.2 +++ b/src/video/raspberry/SDL_rpivideo.c	Thu Oct 10 02:21:41 2013 -0400
     1.3 @@ -144,6 +144,7 @@
     1.4  {
     1.5      SDL_VideoDisplay display;
     1.6      SDL_DisplayMode current_mode;
     1.7 +    SDL_DisplayData *data;
     1.8      uint32_t w,h;
     1.9  
    1.10      /* Initialize BCM Host */
    1.11 @@ -168,8 +169,6 @@
    1.12      display.desktop_mode = current_mode;
    1.13      display.current_mode = current_mode;
    1.14  
    1.15 -    SDL_DisplayData *data;
    1.16 -
    1.17      /* Allocate display internal data */
    1.18      data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData));
    1.19      if (data == NULL) {