summaryrefslogtreecommitdiff
path: root/src/mathc99.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-01-21 22:04:13 (GMT)
committerMarius Kintel <marius@kintel.net>2011-01-21 22:04:13 (GMT)
commit0419cd823216b6ade267d4e0bdd071242aa8bc55 (patch)
tree395bf49dbe96d4d46cf76c86c92746b89bd4b4f9 /src/mathc99.h
parent195d21dd2d535a3ff06d3f3dfe1b1cdbabd4a0d8 (diff)
parent52a474eb5213cfdda7b4825d51861de27b48954f (diff)
Merge branch 'meta23-master'
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