silence warnings in nanosvg.h

This commit is contained in:
Christoph Oelckers 2024-01-06 10:07:15 +01:00
parent 34ecb158b6
commit 763259d654

View file

@ -192,6 +192,11 @@ void nsvgDelete(NSVGimage* image);
#include <stdio.h>
#include <math.h>
#ifdef _MSC_VER
#pragma warning(push);
#pragma warning(disable:4244)
#endif
#define NSVG_PI (3.14159265358979323846264338327f)
#define NSVG_KAPPA90 (0.5522847493f) // Length proportional to radius of a cubic bezier handle for 90deg arcs.
@ -3093,6 +3098,10 @@ void nsvgDelete(NSVGimage* image)
free(image);
}
#ifdef _MSC_VER
#pragma warning(pop);
#endif
#endif // NANOSVG_IMPLEMENTATION
#endif // NANOSVG_H