diff options
Diffstat (limited to 'examples/almultireverb.c')
-rw-r--r-- | examples/almultireverb.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/examples/almultireverb.c b/examples/almultireverb.c index 447216d1..a77cc59e 100644 --- a/examples/almultireverb.c +++ b/examples/almultireverb.c @@ -92,17 +92,6 @@ static LPALGETAUXILIARYEFFECTSLOTIV alGetAuxiliaryEffectSlotiv; static LPALGETAUXILIARYEFFECTSLOTF alGetAuxiliaryEffectSlotf; static LPALGETAUXILIARYEFFECTSLOTFV alGetAuxiliaryEffectSlotfv; -/* C doesn't allow casting between function and non-function pointer types, so - * with C99 we need to use a union to reinterpret the pointer type. Pre-C99 - * still needs to use a normal cast and live with the warning (C++ is fine with - * a regular reinterpret_cast). - */ -#if __STDC_VERSION__ >= 199901L -#define FUNCTION_CAST(T, ptr) (union{void *p; T f;}){ptr}.f -#else -#define FUNCTION_CAST(T, ptr) (T)(ptr) -#endif - /* LoadEffect loads the given initial reverb properties into the given OpenAL * effect object, and returns non-zero on success. |