From: Carl Hetherington Date: Fri, 8 Dec 2017 17:19:06 +0000 (+0000) Subject: Add M_PI which isn't defined by gcc with std=c++11. X-Git-Tag: v2.11.28~13 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=3d776dee14fb4c692cc834a5753fa912764a7ee3 Add M_PI which isn't defined by gcc with std=c++11. --- 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 */