summaryrefslogtreecommitdiff
path: root/src/powerlist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r--src/powerlist.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 6fc77ad..4248b30 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -27,11 +27,17 @@
#include "powerlist.h"
#include <stdlib.h>
-#include <math.h>
+
#include <string.h>
#include <hugin.hpp>
+// M_PI is not defined in math.h if __STRICT_ANSI__ is defined.
+#ifdef __STRICT_ANSI__
+#undef __STRICT_ANSI__
+#endif
+#include <math.h>
+
/**
* Minimum sample set size.
* Smaller means wider 'velocity groups'.