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

Commit

Permalink
[osx] adding preprocessor directives to fix include on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Jan 16, 2017
1 parent ac4579f commit 2cc4e77
Showing 1 changed file with 8 additions and 0 deletions.
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"
#include "marshal.h"
#endif


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

0 comments on commit 2cc4e77

Please sign in to comment.