summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cairomm/context.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/cairomm/context.cc b/cairomm/context.cc
index 02336cd..c26f502 100644
--- a/cairomm/context.cc
+++ b/cairomm/context.cc
@@ -17,9 +17,9 @@
*/
/* M_PI is defined in math.h in the case of Microsoft Visual C++ */
-#if defined(_MSC_VER)
+#if defined(_WIN32)
#define _USE_MATH_DEFINES
-#endif
+#endif
#include <cairommconfig.h>
#include <cairomm/context.h>
@@ -29,11 +29,6 @@
#include <cairomm/script_surface.h>
#include <cairomm/scaledfont.h>
-/* M_PI is defined in math.h in the case of Microsoft Visual C++ */
-#if defined(_MSC_VER)
-#define _USE_MATH_DEFINES
-#endif
-
/* Solaris et. al. need math.h for M_PI too */
#include <cmath>