Skip to content

Commit 6e83ecd

Browse files
committed
solved PyType_Slot *slots; bug in Python.h include command
1 parent ef0383f commit 6e83ecd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

matplotlibcpp.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
// Python headers must be included before any system headers, since
44
// they define _POSIX_C_SOURCE
5-
#include <Python.h>
5+
#pragma push_macro("slots")
6+
#undef slots
7+
#include "Python.h"
8+
#pragma pop_macro("slots")
69

710
#include <vector>
811
#include <map>

0 commit comments

Comments
 (0)