Commit 6c072917e993a7b330017e9d3d9a1f74252d9f14

Ryan C. Gordon 2015-03-19T23:54:35

Patched to compile on gcc2.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/audio/SDL_sysaudio.h b/src/audio/SDL_sysaudio.h
index 2b4e956..502a0d3 100644
--- a/src/audio/SDL_sysaudio.h
+++ b/src/audio/SDL_sysaudio.h
@@ -99,7 +99,11 @@ typedef struct SDL_AudioDeviceItem
 {
     void *handle;
     struct SDL_AudioDeviceItem *next;
+    #if (defined(__GNUC__) && (__GNUC__ <= 2))
+    char name[1];  /* actually variable length. */
+    #else
     char name[];
+    #endif
 } SDL_AudioDeviceItem;