From eae90ebc9220ed26963e9f4b34268094ec629d4c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 15 May 2015 10:18:00 +0200 Subject: Make sure that M_PI is defined. --- src/powerlist.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 -// Otherwise M_PI is not defined in math.h on some older platforms... -#define _USE_MATH_DEFINES -#include - #include #include +// M_PI is not defined in math.h if __STRICT_ANSI__ is defined. +#ifdef __STRICT_ANSI__ +#undef __STRICT_ANSI__ +#endif +#include + /** * Minimum sample set size. * Smaller means wider 'velocity groups'. -- cgit v1.2.3