summaryrefslogtreecommitdiff
path: root/src/powerlist.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:18:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:18:00 +0200
commiteae90ebc9220ed26963e9f4b34268094ec629d4c (patch)
treebf602da9d593c543289b68d8e639df652f507921 /src/powerlist.cc
parent53e66dbf4c17b4f823f57c974c77b6f7f02627bf (diff)
Make sure that M_PI is defined.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r--src/powerlist.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 6cff863..4248b30 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -28,14 +28,16 @@
#include <stdlib.h>
-// Otherwise M_PI is not defined in math.h on some older platforms...
-#define _USE_MATH_DEFINES
-#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'.