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

[osx] adding preprocessor directives to fix include on OSX. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions go-python.h
Original file line number Diff line number Diff line change
@@ -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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't all the other "internal" python-related headers be picked up from under "Python/..." as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is totally correct... I will update the PR.

#include "marshal.h"
#endif


/* stdlib */
#include <stdlib.h>
Expand Down