From 5c20c5732dddfdc3803006efcb053388410cf98a Mon Sep 17 00:00:00 2001 From: Marek Roszko <mark.roszko@gmail.com> Date: Mon, 25 Dec 2023 23:28:33 -0500 Subject: [PATCH] We don't need pgm_base to expose pybind to everything --- include/pgm_base.h | 3 --- scripting/python_scripting.cpp | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) 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>