aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-23 22:44:34 -0700
committerChris Robinson <[email protected]>2011-09-23 22:44:34 -0700
commitda62f5052890054daa11603eb9bd2522cae8a3df (patch)
treeb1cae1c1d141a05974aef7d7de971fc619e91b20 /OpenAL32/Include
parente84e38cc193be0678f98cf8b5deba1471c77e225 (diff)
Check for asinf and use it
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index a62ca1c5..f041ffc5 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -52,6 +52,12 @@
#define aluAcos(x) ((ALfloat)acos((double)(x)))
#endif
+#ifdef HAVE_ASINF
+#define aluAsin(x) (asinf((x)))
+#else
+#define aluAsin(x) ((ALfloat)asin((double)(x)))
+#endif
+
#ifdef HAVE_ATANF
#define aluAtan(x) (atanf((x)))
#else