From 1ed5e089c5baf40c4735ed44ec5e31b6d09b981e Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Fri, 13 Apr 2018 19:16:30 +0200 Subject: [PATCH] Include shapes.h and cmath instead of math.h --- poly2tri/common/utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poly2tri/common/utils.h b/poly2tri/common/utils.h index 2424c71..4df2d29 100644 --- a/poly2tri/common/utils.h +++ b/poly2tri/common/utils.h @@ -35,8 +35,10 @@ // Otherwise #defines like M_PI are undeclared under Visual Studio #define _USE_MATH_DEFINES +#include "shapes.h" + +#include #include -#include // C99 removes M_PI from math.h #ifndef M_PI