From 2cc4e7747ae7e438b85b19e6147cdd6a2877ced2 Mon Sep 17 00:00:00 2001 From: truthbk Date: Thu, 29 Dec 2016 14:42:34 +0100 Subject: [PATCH] [osx] adding preprocessor directives to fix include on OSX. --- go-python.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/go-python.h b/go-python.h index b067eb0..db74a66 100644 --- a/go-python.h +++ b/go-python.h @@ -1,10 +1,18 @@ #ifndef GOPYTHON_GOPYTHON_H #define GOPYTHON_GOPYTHON_H 1 +#ifdef __APPLE__ +#include "Python/Python.h" + +#include "Python/frameobject.h" +#include "Python/marshal.h" +#else #include "Python.h" #include "frameobject.h" #include "marshal.h" +#endif + /* stdlib */ #include