diff --git a/include/pgm_base.h b/include/pgm_base.h index 0f9c5760af..682b064797 100644 --- a/include/pgm_base.h +++ b/include/pgm_base.h @@ -40,9 +40,6 @@ #include <wx/filename.h> #include <wx/snglinst.h> -#undef pid_t -#include <pybind11/embed.h> - class wxApp; class wxMenu; class wxWindow; diff --git a/scripting/python_scripting.cpp b/scripting/python_scripting.cpp index 93c293c3fa..56e337d9dc 100644 --- a/scripting/python_scripting.cpp +++ b/scripting/python_scripting.cpp @@ -29,9 +29,11 @@ #include <python_scripting.h> +#undef pid_t +#include <pybind11/embed.h> + #include <cstdlib> #include <cstring> -#include <Python.h> #include <string> #include <eda_base_frame.h>