From: Chris Young Date: Sun, 22 Nov 2009 15:57:10 +0000 (-0000) Subject: Despite M_PI being #defined in math.h, and math.h being #included, in certain X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=f7f853e42ccd02a406cab6fc24554f18ff4bccb4;p=libsvgtiny.git 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 --- 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);