Fix build on windows

This commit is contained in:
Oleg Korshul
2021-04-19 17:52:10 +03:00
parent de88587dde
commit cac21d43ad
4 changed files with 28 additions and 17 deletions

View File

@ -1,13 +1,22 @@
#include <algorithm>
#include <time.h>
#include <math.h>
#include "../../../graphics/AggPlusEnums.h"
#ifndef M_1_PI
#define M_1_PI 0.318309886183790671538
#endif
#ifndef NAN_FLOAT
#ifdef NAN
#define NAN_FLOAT NAN
#else
#define NAN_FLOAT 0.0f/0.0f
#endif
#endif
#ifdef _WIN32
#define isnanf _isnanf
#endif
#ifndef SHADING_PDF
#define SHADING_PDF