diff --git a/src/pymport.h b/src/pymport.h index 3c1c644..75ba489 100644 --- a/src/pymport.h +++ b/src/pymport.h @@ -2,9 +2,17 @@ #include #include -#include #include +// This allows building in debug mode on Windows without having the Python debug build +#ifdef _DEBUG +#undef _DEBUG +#include +#define _DEBUG +#else +#include +#endif + #include "pystackobject.h" namespace pymport {