Skip to content

Commit 8dee73c

Browse files
committed
Allow compilation using macOS by conditionally changing "#include <Python.h>" to "#include <Python/Python.h>"
1 parent f4ad842 commit 8dee73c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

matplotlibcpp.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#include <cstdint> // <cstdint> requires c++11 support
1111
#include <functional>
1212

13+
#ifdef __APPLE__
14+
#include <Python/Python.h>
15+
#else
1316
#include <Python.h>
17+
#endif
1418

1519
#ifndef WITHOUT_NUMPY
1620
# define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

0 commit comments

Comments
 (0)