From 94af34d42129bad72fd7ce50dc6901287509703e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 18 May 2015 18:50:25 +0200 Subject: [PATCH] error C2065: M_PI : undeclared identifier --- src/lib/libwps_internal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/libwps_internal.h b/src/lib/libwps_internal.h index fb9016d..02a87bc 100644 --- a/src/lib/libwps_internal.h +++ b/src/lib/libwps_internal.h @@ -28,6 +28,7 @@ #include #endif +#include #include #include #include @@ -36,6 +37,10 @@ #include #include +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + #if defined(_MSC_VER) || defined(__DJGPP__) typedef signed char int8_t; typedef unsigned char uint8_t; -- 2.4.0