]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - src/svgtiny.c
Despite M_PI being #defined in math.h, and math.h being #included, in certain
[libsvgtiny.git] / 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);