summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-11-22 15:57:10 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2009-11-22 15:57:10 (GMT)
commitf7f853e42ccd02a406cab6fc24554f18ff4bccb4 (patch)
tree846f0588e7b8c45d67a54bb80900c2924e82194c
parenta36a3969d04eb8021ec4b44c953888c481731047 (diff)
downloadlibsvgtiny-f7f853e42ccd02a406cab6fc24554f18ff4bccb4.tar.gz
libsvgtiny-f7f853e42ccd02a406cab6fc24554f18ff4bccb4.tar.bz2
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
-rw-r--r--src/svgtiny.c3
1 files changed, 3 insertions, 0 deletions
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);