瀏覽代碼

Patched to compile on gcc2.

Ryan C. Gordon 10 年之前
父節點
當前提交
6c072917e9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/audio/SDL_sysaudio.h

+ 4 - 0
src/audio/SDL_sysaudio.h

@@ -99,7 +99,11 @@ typedef struct SDL_AudioDeviceItem
 {
 {
     void *handle;
     void *handle;
     struct SDL_AudioDeviceItem *next;
     struct SDL_AudioDeviceItem *next;
+    #if (defined(__GNUC__) && (__GNUC__ <= 2))
+    char name[1];  /* actually variable length. */
+    #else
     char name[];
     char name[];
+    #endif
 } SDL_AudioDeviceItem;
 } SDL_AudioDeviceItem;