Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 2cc4e77

Browse files
committed
[osx] adding preprocessor directives to fix include on OSX.
1 parent ac4579f commit 2cc4e77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

go-python.h

+8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
#ifndef GOPYTHON_GOPYTHON_H
22
#define GOPYTHON_GOPYTHON_H 1
33

4+
#ifdef __APPLE__
5+
#include "Python/Python.h"
6+
7+
#include "Python/frameobject.h"
8+
#include "Python/marshal.h"
9+
#else
410
#include "Python.h"
511

612
#include "frameobject.h"
713
#include "marshal.h"
14+
#endif
15+
816

917
/* stdlib */
1018
#include <stdlib.h>

0 commit comments

Comments
 (0)