2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2011-01-18 02:02:56 +03:00
|
|
|
|
2015-03-22 16:17:12 +03:00
|
|
|
#if defined(_MSC_VER)
|
|
|
|
|
|
|
|
// only for native windows builds, not MXE
|
2011-01-18 02:02:56 +03:00
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
//for native win32 builds we need to provide C99 math functions by ourselves
|
2013-07-28 15:42:35 +04:00
|
|
|
double trunc(double a);
|
2011-01-18 02:02:56 +03:00
|
|
|
double round(double a);
|
2011-01-18 02:52:45 +03:00
|
|
|
float fmin(float a, float b);
|
|
|
|
float fmax(float a, float b);
|
2011-01-18 02:02:56 +03:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2015-03-22 16:17:12 +03:00
|
|
|
#define _USE_MATH_DEFINES
|
2011-01-18 02:02:56 +03:00
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
#endif
|