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) {