diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-12 15:51:45 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-12 15:51:45 (GMT) |
commit | 1754a970a76c071fff91cc7c716aa0b78b4ac6be (patch) | |
tree | 5faa0fad3b5324423cd44413d5fdd16c586c1e29 /src/mathc99.h | |
parent | 592ca6abadcb6443629be4407b973279a891278c (diff) | |
parent | a3cfe9e6d76f41cbd13711d1bc3843afe3d14f2d (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/mathc99.h')
-rw-r--r-- | src/mathc99.h | 18 |
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
|