#include "vimageloader.h"
#include "config.h"
#include "vdebug.h"
-#ifndef WIN32
+#ifndef _WIN32
#include <dlfcn.h>
#else
#include <windows.h>
lottie_image_load_data_f imageFromData{nullptr};
#if LOTTIE_IMAGE_MODULE_SUPPORT
-#ifdef WIN32
+#ifdef _WIN32
HMODULE dl_handle{nullptr};
bool moduleLoad()
{
inline float VLine::angle() const
{
+ static constexpr float K_PI = 3.141592f;
const float dx = mX2 - mX1;
const float dy = mY2 - mY1;
- const float theta = std::atan2(dy, dx) * 180.0 / M_PI;
+ const float theta = std::atan2f(dy, dx) * 180.0f / K_PI;
return theta;
}
static VPointF curvesForArc(const VRectF &, float, float, VPointF *, size_t *);
static constexpr float PATH_KAPPA = 0.5522847498f;
-static constexpr float K_PI = float(M_PI);
+static constexpr float K_PI = 3.141592f;
void VPath::VPathData::arcTo(const VRectF &rect, float startAngle,
float sweepLength, bool forceMoveTo)