diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-14 01:49:55 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-14 01:49:55 (GMT) |
commit | 23b04c3a9f1aba164d7429fee4669de18a32d9a8 (patch) | |
tree | 9256565d394e35850a8b01ba11c8820546e3c960 /src/mathc99.h | |
parent | e6bfee021b3cb4843a78cf7b526986f51966de32 (diff) |
bugfix: division by zero can cause malformed primitives
Diffstat (limited to 'src/mathc99.h')
-rw-r--r-- | src/mathc99.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mathc99.h b/src/mathc99.h index ae31a22..d1dc504 100644 --- a/src/mathc99.h +++ b/src/mathc99.h @@ -13,6 +13,8 @@ float fmax(float a, float b); #else
#include <math.h>
+#include <cmath>
+using std::isinf;
#endif
|