From 3d776dee14fb4c692cc834a5753fa912764a7ee3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 8 Dec 2017 17:19:06 +0000 Subject: Add M_PI which isn't defined by gcc with std=c++11. --- src/lib/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/util.h') diff --git a/src/lib/util.h b/src/lib/util.h index d4616a7c9..1d4b01358 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -43,6 +43,10 @@ namespace dcp { class SoundAsset; } +#ifndef M_PI +#define M_PI (3.14159265358979323846) +#endif + /** The maximum number of audio channels that we can have in a DCP */ #define MAX_DCP_AUDIO_CHANNELS 16 /** Message broadcast to find possible encoding servers */ -- cgit v1.2.3