diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-05-15 10:24:10 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-05-15 10:24:10 +0200 |
commit | 6a19e8f182183ad88df91d4a46e418fb4d42f9bd (patch) | |
tree | 8dc45842bc1214ad5f1f2e4c736e9761e42492ff | |
parent | eae90ebc9220ed26963e9f4b34268094ec629d4c (diff) |
Make sure that M_PI is defined.
-rw-r--r-- | plugingui/knob.cc | 5 |
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) |