summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:24:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:24:10 +0200
commit6a19e8f182183ad88df91d4a46e418fb4d42f9bd (patch)
tree8dc45842bc1214ad5f1f2e4c736e9761e42492ff /plugingui/knob.cc
parenteae90ebc9220ed26963e9f4b34268094ec629d4c (diff)
Make sure that M_PI is defined.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index ca861b5..4cac180 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -30,6 +30,11 @@
#include <hugin.hpp>
#include <stdio.h>
+
+// M_PI is not defined in math.h if __STRICT_ANSI__ is defined.
+#ifdef __STRICT_ANSI__
+#undef __STRICT_ANSI__
+#endif
#include <math.h>
GUI::Knob::Knob(Widget *parent)