changeset 1059:7598a78cf915 tonioni

M_PI
author Chris Cannam
date Mon, 30 Mar 2015 16:58:01 +0100
parents c49d52386cde
children 57633d605547
files base/Window.h system/System.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/base/Window.h	Wed Mar 25 10:54:51 2015 +0000
+++ b/base/Window.h	Mon Mar 30 16:58:01 2015 +0100
@@ -22,7 +22,7 @@
 #include <map>
 #include <cstdlib>
 
-#include <cstdlib>
+#include "system/System.h"
 
 enum WindowType {
     RectangularWindow,
--- a/system/System.h	Wed Mar 25 10:54:51 2015 +0000
+++ b/system/System.h	Mon Mar 30 16:58:01 2015 +0100
@@ -156,6 +156,10 @@
 
 #include <cmath>
 
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
 extern double mod(double x, double y);
 extern float modf(float x, float y);