summaryrefslogtreecommitdiff
path: root/src/mathc99.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-04-12 18:35:44 (GMT)
committerMarius Kintel <marius@kintel.net>2011-04-12 18:35:44 (GMT)
commitd24b3cc84d0701a5423925765e515db7df9614c5 (patch)
tree0d63867d8b5a3c6ffe107371caa6b29cf8ad0f02 /src/mathc99.h
parent633343c47e0d2bced64d47f62e814489b8e76dc2 (diff)
parent1754a970a76c071fff91cc7c716aa0b78b4ac6be (diff)
Ported recent changes to master into the visitor branch
Diffstat (limited to 'src/mathc99.h')
-rw-r--r--src/mathc99.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mathc99.h b/src/mathc99.h
new file mode 100644
index 0000000..ebc2d66
--- /dev/null
+++ b/src/mathc99.h
@@ -0,0 +1,18 @@
+#ifndef MATHC99_H_
+#define MATHC99_H_
+
+#ifdef WIN32
+
+#include <cmath>
+//for native win32 builds we need to provide C99 math functions by ourselves
+double round(double a);
+float fmin(float a, float b);
+float fmax(float a, float b);
+
+#else
+
+#include <math.h>
+
+#endif
+
+#endif
contact: Jan Huwald // Impressum