mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix build
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "../../../graphics/AggPlusEnums.h"
|
#include "../../../graphics/AggPlusEnums.h"
|
||||||
#include "../../../graphics/structures.h"
|
#include "../../../graphics/structures.h"
|
||||||
|
#include <cmath>
|
||||||
#ifndef M_1_PI
|
#ifndef M_1_PI
|
||||||
#define M_1_PI 0.318309886183790671538
|
#define M_1_PI 0.318309886183790671538
|
||||||
#endif
|
#endif
|
||||||
@ -15,10 +16,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define isnanf _isnanf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SHADING_PDF
|
#ifndef SHADING_PDF
|
||||||
#define SHADING_PDF
|
#define SHADING_PDF
|
||||||
|
|
||||||
@ -558,7 +555,7 @@ namespace agg
|
|||||||
inline float calculate_param(const float &x, const float &y)
|
inline float calculate_param(const float &x, const float &y)
|
||||||
{
|
{
|
||||||
float t = calculate->eval(x, y);
|
float t = calculate->eval(x, y);
|
||||||
if(isnanf(t))
|
if(std::isnan(t))
|
||||||
return t;
|
return t;
|
||||||
|
|
||||||
if (t < m_oGradientInfo.shading.function.get_x_min() && !m_oGradientInfo.continue_shading_b)
|
if (t < m_oGradientInfo.shading.function.get_x_min() && !m_oGradientInfo.continue_shading_b)
|
||||||
|
|||||||
Reference in New Issue
Block a user