From 6a19e8f182183ad88df91d4a46e418fb4d42f9bd Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 15 May 2015 10:24:10 +0200 Subject: Make sure that M_PI is defined. --- plugingui/knob.cc | 5 +++++ 1 file changed, 5 insertions(+) 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 #include + +// M_PI is not defined in math.h if __STRICT_ANSI__ is defined. +#ifdef __STRICT_ANSI__ +#undef __STRICT_ANSI__ +#endif #include GUI::Knob::Knob(Widget *parent) -- cgit v1.2.3