openscad/src/mathc99.cc

19 lines
268 B
C++
Raw Normal View History

2011-01-18 02:02:56 +03:00
#include "mathc99.h"
#ifdef WIN32
#include <algorithm>
double round(double a) {
return a > 0 ? floor(a+0.5) : ceil(a-0.5);
}
float fmin(float a, float b) {
return std::min(a,b);
2011-01-18 02:02:56 +03:00
}
float fmax(float a, float b) {
return std::max(a,b);
}
#endif