diff options
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index eedf10d9..a4e0930c 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -15,6 +15,12 @@ #define M_PI_2 1.57079632679489661923 /* pi/2 */ #endif +#ifdef HAVE_POWF +#define aluPow(x,y) ((ALfloat)powf((float)(x),(float)(y))) +#else +#define aluPow(x,y) ((ALfloat)pow((double)(x),(double)(y))) +#endif + #ifdef HAVE_SQRTF #define aluSqrt(x) ((ALfloat)sqrtf((float)(x))) #else |