diff --git a/dtool/src/dtoolutil/filename.cxx b/dtool/src/dtoolutil/filename.cxx index bc8b1dc00a..143bbde0a3 100644 --- a/dtool/src/dtoolutil/filename.cxx +++ b/dtool/src/dtoolutil/filename.cxx @@ -49,10 +49,6 @@ #include #endif -#ifdef HAVE_PYTHON -#include "Python.h" -#endif - TextEncoder::Encoding Filename::_filesystem_encoding = TextEncoder::E_utf8; TVOLATILE AtomicAdjust::Pointer Filename::_home_directory; diff --git a/dtool/src/dtoolutil/globPattern.cxx b/dtool/src/dtoolutil/globPattern.cxx index 732b724c11..7f7d23a53b 100644 --- a/dtool/src/dtoolutil/globPattern.cxx +++ b/dtool/src/dtoolutil/globPattern.cxx @@ -15,10 +15,6 @@ #include "globPattern.h" #include -#ifdef HAVE_PYTHON -#include "Python.h" -#endif - //////////////////////////////////////////////////////////////////// // Function: GlobPattern::has_glob_characters // Access: Published diff --git a/panda/src/putil/callbackObject_ext.h b/panda/src/putil/callbackObject_ext.h index 1d3af19cea..d72713da19 100644 --- a/panda/src/putil/callbackObject_ext.h +++ b/panda/src/putil/callbackObject_ext.h @@ -16,7 +16,6 @@ #define CALLBACKOBJECT_EXT_H #include "dtoolbase.h" -#include "pointerTo.h" #ifdef HAVE_PYTHON