summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-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)