diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-08 17:19:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-08 17:19:06 +0000 |
| commit | 3d776dee14fb4c692cc834a5753fa912764a7ee3 (patch) | |
| tree | d933fd4ac4e42c7ab3177cdc8507cc8d370a94c0 /src/lib | |
| parent | 21c4cf9a63785f2237bc798cbe71cd2ca9bdceb7 (diff) | |
Add M_PI which isn't defined by gcc with std=c++11.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |
