diff options
author | Chris Robinson <[email protected]> | 2012-10-12 07:10:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-12 07:10:51 -0700 |
commit | 25b8a95987a714263859d004a9be0cc504a976e4 (patch) | |
tree | ecbe52e603374e254b25f2fc5680a49e9af15d66 /OpenAL32 | |
parent | 99fcd6f816c125ebb45905f4adf7a423e860e561 (diff) |
Check the distance against epsilon to determine if it matches
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index ef573d6f..d4339d96 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -16,6 +16,11 @@ #define F_PI (3.14159265358979323846f) /* pi */ #define F_PI_2 (1.57079632679489661923f) /* pi/2 */ +#ifndef FLT_EPSILON +#define FLT_EPSILON (1.19209290e-07f) +#endif + + #ifndef HAVE_POWF static __inline float powf(float x, float y) { return (float)pow(x, y); } |