소스 검색

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;
     struct SDL_AudioDeviceItem *next;
+    #if (defined(__GNUC__) && (__GNUC__ <= 2))
+    char name[1];  /* actually variable length. */
+    #else
     char name[];
+    #endif
 } SDL_AudioDeviceItem;