diff --git a/include/pybind11/detail/type_caster_odr_guard.h b/include/pybind11/detail/type_caster_odr_guard.h index 1be8efef0..97092e0ab 100644 --- a/include/pybind11/detail/type_caster_odr_guard.h +++ b/include/pybind11/detail/type_caster_odr_guard.h @@ -29,6 +29,7 @@ # pragma GCC diagnostic ignored "-Wsubobject-linkage" # endif +# include "../pytypes.h" # include "common.h" # include "descr.h" # include "typeid.h"