Skip to content

Commit

Permalink
build in debug mode on Windows without Python debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Nov 3, 2022
1 parent 97ed89a commit ab6d8f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pymport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

#include <map>
#include <list>
#include <Python.h>
#include <napi.h>

// This allows building in debug mode on Windows without having the Python debug build
#ifdef _DEBUG
#undef _DEBUG
#include <Python.h>
#define _DEBUG
#else
#include <Python.h>
#endif

#include "pystackobject.h"

namespace pymport {
Expand Down

0 comments on commit ab6d8f3

Please sign in to comment.