From f7f853e42ccd02a406cab6fc24554f18ff4bccb4 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 22 Nov 2009 15:57:10 +0000 Subject: Despite M_PI being #defined in math.h, and math.h being #included, in certain circumstances it doesn't get #defined. Catch this. svn path=/trunk/libsvgtiny/; revision=9701 --- src/svgtiny.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/svgtiny.c b/src/svgtiny.c index aae0b0e..9f71dbe 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -18,6 +18,9 @@ #include "svgtiny.h" #include "svgtiny_internal.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif static svgtiny_code svgtiny_parse_svg(xmlNode *svg, struct svgtiny_parse_state state); -- cgit v1.2.3