openscad/src/mathc99.h

20 lines
316 B
C
Raw Normal View History

2011-01-18 02:02:56 +03:00
#ifndef MATHC99_H_
#define MATHC99_H_
#ifdef WIN32
#include <cmath>
//for native win32 builds we need to provide C99 math functions by ourselves
double trunc(double a);
2011-01-18 02:02:56 +03:00
double round(double a);
float fmin(float a, float b);
float fmax(float a, float b);
2011-01-18 02:02:56 +03:00
#else
#include <math.h>
#endif
#endif