From a9d667e9f4d7bd8d1937252c6fa407100d05802a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 21 Oct 2017 12:17:37 -0700 Subject: [PATCH] Fixed bug 3903 - music_wav.c SamplerChunk struct Ozkan Sezer music_wav.c : SamplerChunk struct has SampleLoop loops[]; as its last member, ancient gcc fails with it: music_wav.c:108: field `loops' has incomplete type Changing it to SampleLoop loops[0] (or SampleLoop loops[1]) makes it to compile using gcc2.95, if there is interest to support this. I can't remember how MSVC supports flexible array members. --- music_wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_wav.c b/music_wav.c index 8c33a1c1..2eda8479 100644 --- a/music_wav.c +++ b/music_wav.c @@ -105,7 +105,7 @@ typedef struct { Uint32 SMTPE_offset; Uint32 sample_loops; Uint32 sampler_data; - SampleLoop loops[]; + SampleLoop loops[0]; } SamplerChunk; /*********************************************/