From f3a3358e63d5481fdfcb75856ae485b252767c47 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Jun 2009 23:33:53 -0700 Subject: [PATCH] Fix for MSVC MSVC won't accept zero-sized arrays at the end of structs, if that struct is used in another struct that's not also at the end. This wastes a float for each FILTER object --- OpenAL32/Include/alFilter.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index c0a05d6a..0f00f029 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -10,7 +10,11 @@ extern "C" { typedef struct { ALfloat coeff; +#ifndef _MSC_VER ALfloat history[0]; +#else + ALfloat history[1]; +#endif } FILTER; static __inline ALfloat lpFilter4P(FILTER *iir, ALuint offset, ALfloat input) -- 2.11.4.GIT