aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-22 11:17:01 -0700
committerChris Robinson <[email protected]>2011-09-22 11:17:01 -0700
commit470b506952c83580cfae5c3dc94a3b359c900dea (patch)
tree149d982293f816d6bf240f0491013573449f8f3d /OpenAL32/Include
parentde8a447ea50aba854df956716c6abdd846916d5f (diff)
Use macros for float-typed PI values, to avoid manual casts everywhere
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 5a222b47..2c20837b 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -19,6 +19,9 @@
#define M_PI_2 1.57079632679489661923 /* pi/2 */
#endif
+#define F_PI ((float)M_PI)
+#define F_PI_2 ((float)M_PI_2)
+
#ifdef HAVE_POWF
#define aluPow(x,y) (powf((x),(y)))
#else