Patched to compile on gcc2.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Mar 2015 23:54:35 -0400
changeset 940783eab73048cd
parent 9406 3547065d936d
child 9408 93ba64cb5e16
Patched to compile on gcc2.
src/audio/SDL_sysaudio.h
     1.1 --- a/src/audio/SDL_sysaudio.h	Thu Mar 19 23:45:34 2015 -0400
     1.2 +++ b/src/audio/SDL_sysaudio.h	Thu Mar 19 23:54:35 2015 -0400
     1.3 @@ -99,7 +99,11 @@
     1.4  {
     1.5      void *handle;
     1.6      struct SDL_AudioDeviceItem *next;
     1.7 +    #if (defined(__GNUC__) && (__GNUC__ <= 2))
     1.8 +    char name[1];  /* actually variable length. */
     1.9 +    #else
    1.10      char name[];
    1.11 +    #endif
    1.12  } SDL_AudioDeviceItem;
    1.13  
    1.14