Add M_PI which isn't defined by gcc with std=c++11.
authorCarl Hetherington <cth@carlh.net>
Fri, 8 Dec 2017 17:19:06 +0000 (17:19 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 8 Dec 2017 17:19:06 +0000 (17:19 +0000)
src/lib/util.h

index d4616a7c9ea1bc4e0eadcb7e413a721314917602..1d4b013581870c97184eff2b11453766a205c97a 100644 (file)
@@ -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 */