summaryrefslogtreecommitdiff
path: root/examples/svg-surface/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/svg-surface/main.cc')
-rw-r--r--examples/svg-surface/main.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/svg-surface/main.cc b/examples/svg-surface/main.cc
index 2732f5e..463a2bf 100644
--- a/examples/svg-surface/main.cc
+++ b/examples/svg-surface/main.cc
@@ -3,6 +3,12 @@
#include <cairomm/context.h>
#include <cairomm/surface.h>
+/* M_PI is defined in math.h in the case of Microsoft Visual C++ */
+#if defined(_MSC_VER)
+#define _USE_MATH_DEFINES
+#include <math.h>
+#endif
+
int main(int argc, char** argv)
{
#ifdef CAIRO_HAS_SVG_SURFACE