summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-02-19 20:59:51 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-02-20 14:47:03 +0000
commit7d85efbf3c8cd0524bf92cec74f73b4484411da7 (patch)
treebaa5cd499fcad7c4f52a5f744c34b0dcb57f606a /Examples
parent33c547d0799e2d92d7dbeffe9e36f3e8da099be3 (diff)
downloadswig-7d85efbf3c8cd0524bf92cec74f73b4484411da7.tar.gz
Lua example fix for newer osx
Diffstat (limited to 'Examples')
-rw-r--r--Examples/lua/owner/example.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/lua/owner/example.cxx b/Examples/lua/owner/example.cxx
index c2c073d79..a4dcc68a1 100644
--- a/Examples/lua/owner/example.cxx
+++ b/Examples/lua/owner/example.cxx
@@ -3,7 +3,9 @@
#include "example.h"
#include <stdio.h>
+#ifndef M_PI
#define M_PI 3.14159265358979323846
+#endif
/* Move the shape to a new location */
void Shape::move(double dx, double dy) {