diff options
author | meta <s@w23.at> | 2011-01-17 23:02:56 (GMT) |
---|---|---|
committer | meta <s@w23.at> | 2011-01-17 23:02:56 (GMT) |
commit | 8160212499c40c74f1c1c396f02332336ec4e8ae (patch) | |
tree | 2f20bc7a05e942f56e5a90040e97cbb08614bc9e /src/mathc99.h | |
parent | 163461f47cdfb9de4b6b79268537fbe432a2522d (diff) |
add C99 math for win32
Diffstat (limited to 'src/mathc99.h')
-rw-r--r-- | src/mathc99.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mathc99.h b/src/mathc99.h new file mode 100644 index 0000000..4d5d3be --- /dev/null +++ b/src/mathc99.h @@ -0,0 +1,16 @@ +#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);
+
+#else
+
+#include <math.h>
+
+#endif
+
+#endif
|