Bump version to 5.0-14
[LibreOffice.git] / external / libwps / 0001-error-C2065-M_PI-undeclared-identifier.patch
blob01109dc7221598f269079fc0afc19be7c35c2318
1 From 94af34d42129bad72fd7ce50dc6901287509703e Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Mon, 18 May 2015 18:50:25 +0200
4 Subject: [PATCH] error C2065: M_PI : undeclared identifier
6 ---
7 src/lib/libwps_internal.h | 5 +++++
8 1 file changed, 5 insertions(+)
10 diff --git a/src/lib/libwps_internal.h b/src/lib/libwps_internal.h
11 index fb9016d..02a87bc 100644
12 --- a/src/lib/libwps_internal.h
13 +++ b/src/lib/libwps_internal.h
14 @@ -28,6 +28,7 @@
15 #include <stdio.h>
16 #endif
18 +#include <cmath>
19 #include <iostream>
20 #include <map>
21 #include <string>
22 @@ -36,6 +37,10 @@
23 #include <librevenge-stream/librevenge-stream.h>
24 #include <librevenge/librevenge.h>
26 +#ifndef M_PI
27 +#define M_PI 3.14159265358979323846
28 +#endif
30 #if defined(_MSC_VER) || defined(__DJGPP__)
31 typedef signed char int8_t;
32 typedef unsigned char uint8_t;
33 --
34 2.4.0