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