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
This commit is contained in:
Chris Robinson
2009-06-06 23:33:53 -07:00
parent 3c122b0bef
commit f3a3358e63
+4
View File
@@ -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)