From 6c072917e993a7b330017e9d3d9a1f74252d9f14 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 19 Mar 2015 23:54:35 -0400 Subject: [PATCH] Patched to compile on gcc2. --- src/audio/SDL_sysaudio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/audio/SDL_sysaudio.h b/src/audio/SDL_sysaudio.h index 2b4e95688948f..502a0d3171152 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;