summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-06-06 23:33:53 -0700
committerChris Robinson <[email protected]>2009-06-06 23:33:53 -0700
commitf3a3358e63d5481fdfcb75856ae485b252767c47 (patch)
tree0267502f4cc2ff86f771438193b5a3a2e00f1b53
parent3c122b0bef6f718f2a55e0b27f712e7accf89376 (diff)
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
-rw-r--r--OpenAL32/Include/alFilter.h4
1 files changed, 4 insertions, 0 deletions
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)