]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Despite M_PI being #defined in math.h, and math.h being #included, in certain
authorChris Young <chris@unsatisfactorysoftware.co.uk>
Sun, 22 Nov 2009 15:57:10 +0000 (15:57 -0000)
committerChris Young <chris@unsatisfactorysoftware.co.uk>
Sun, 22 Nov 2009 15:57:10 +0000 (15:57 -0000)
circumstances it doesn't get #defined.  Catch this.

svn path=/trunk/libsvgtiny/; revision=9701

src/svgtiny.c

index aae0b0e1fb0c95ca0062781d07fad2c5bd9f6fec..9f71dbe340ba4ce6ef5a29a227f61af430164f01 100644 (file)
@@ -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);