diff --git a/matplotlibcpp.h b/matplotlibcpp.h index d95d46a..c49110b 100644 --- a/matplotlibcpp.h +++ b/matplotlibcpp.h @@ -2,7 +2,10 @@ // Python headers must be included before any system headers, since // they define _POSIX_C_SOURCE -#include +#pragma push_macro("slots") +#undef slots +#include "Python.h" +#pragma pop_macro("slots") #include #include