summaryrefslogtreecommitdiff
path: root/src/powerlist.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:11:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 10:11:08 +0200
commit53e66dbf4c17b4f823f57c974c77b6f7f02627bf (patch)
treee97d16a705f6299e0807f76b635d3e454aad379c /src/powerlist.cc
parente3821e26ad868bdd78f999695cd70e6e132da4a8 (diff)
Make sure that M_PI is defined.
Diffstat (limited to 'src/powerlist.cc')
-rw-r--r--src/powerlist.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 6fc77ad..6cff863 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -27,7 +27,11 @@
#include "powerlist.h"
#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>