aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/pyprefix.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/py/source/pyprefix.h')
-rw-r--r--externals/grill/py/source/pyprefix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/externals/grill/py/source/pyprefix.h b/externals/grill/py/source/pyprefix.h
index ac97cbde..de74ca42 100644
--- a/externals/grill/py/source/pyprefix.h
+++ b/externals/grill/py/source/pyprefix.h
@@ -14,6 +14,10 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define FLEXT_ATTRIBUTES 1
#include <flext.h>
+// hack: must include math.h before Python.h (at least on OSX)
+// otherwise some functions don't get defined
+#include <math.h>
+
#if FLEXT_OS == FLEXT_OS_MAC
#include <Python/Python.h>
#else