summaryrefslogtreecommitdiff
path: root/src/mathc99.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2014-01-14 01:49:55 (GMT)
committerMarius Kintel <marius@kintel.net>2014-01-14 01:49:55 (GMT)
commit23b04c3a9f1aba164d7429fee4669de18a32d9a8 (patch)
tree9256565d394e35850a8b01ba11c8820546e3c960 /src/mathc99.h
parente6bfee021b3cb4843a78cf7b526986f51966de32 (diff)
bugfix: division by zero can cause malformed primitives
Diffstat (limited to 'src/mathc99.h')
-rw-r--r--src/mathc99.h2
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
contact: Jan Huwald // Impressum