From 91578e403310867c0398f736c26ff6d475d38896 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 17 Mar 2003 10:29:35 +0000 Subject: [PATCH] Define M_PI if not defined in math.h git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4558 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/java/mpointer/example.cxx | 3 +++ Examples/php4/shadow/example.cxx | 3 +++ Examples/python/mpointer/example.cxx | 3 +++ Examples/python/shadow/example.cxx | 3 +++ Examples/python/smartptr/example.cxx | 3 +++ Examples/ruby/mpointer/example.cxx | 3 +++ 6 files changed, 18 insertions(+) diff --git a/Examples/java/mpointer/example.cxx b/Examples/java/mpointer/example.cxx index 1a6bb666a..80d95f618 100644 --- a/Examples/java/mpointer/example.cxx +++ b/Examples/java/mpointer/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) { diff --git a/Examples/php4/shadow/example.cxx b/Examples/php4/shadow/example.cxx index d7f5046fe..bf088228f 100644 --- a/Examples/php4/shadow/example.cxx +++ b/Examples/php4/shadow/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) { diff --git a/Examples/python/mpointer/example.cxx b/Examples/python/mpointer/example.cxx index 1a6bb666a..80d95f618 100644 --- a/Examples/python/mpointer/example.cxx +++ b/Examples/python/mpointer/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) { diff --git a/Examples/python/shadow/example.cxx b/Examples/python/shadow/example.cxx index 21582f4d1..92a3add45 100644 --- a/Examples/python/shadow/example.cxx +++ b/Examples/python/shadow/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) { diff --git a/Examples/python/smartptr/example.cxx b/Examples/python/smartptr/example.cxx index 21582f4d1..92a3add45 100644 --- a/Examples/python/smartptr/example.cxx +++ b/Examples/python/smartptr/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) { diff --git a/Examples/ruby/mpointer/example.cxx b/Examples/ruby/mpointer/example.cxx index 1a6bb666a..80d95f618 100644 --- a/Examples/ruby/mpointer/example.cxx +++ b/Examples/ruby/mpointer/example.cxx @@ -2,6 +2,9 @@ #include "example.h" #include +#ifndef M_PI +# define M_PI 3.14159265358979323846 +#endif /* Move the shape to a new location */ void Shape::move(double dx, double dy) {