From 4ddf7c402d3f460cda8370a7aff920adeefab06c Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Mon, 10 Jun 2019 12:54:56 -0700 Subject: [PATCH] Add missing includes for better Bazel compatibility (#1255) Bazel has a "strict" build model that requires all C++ header files be compilable on their own, and thus must explicitly #include all headers they require (even if de facto header inclusion order means they'd get them "for free"). This adds a couple of headers that are needed (but missing) by this model. --- include/pybind11/detail/class.h | 1 + include/pybind11/detail/typeid.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/pybind11/detail/class.h b/include/pybind11/detail/class.h index 7a5dd013..6c88986f 100644 --- a/include/pybind11/detail/class.h +++ b/include/pybind11/detail/class.h @@ -10,6 +10,7 @@ #pragma once #include "../attr.h" +#include "../options.h" NAMESPACE_BEGIN(PYBIND11_NAMESPACE) NAMESPACE_BEGIN(detail) diff --git a/include/pybind11/detail/typeid.h b/include/pybind11/detail/typeid.h index 6f36aab7..9c8a4fc6 100644 --- a/include/pybind11/detail/typeid.h +++ b/include/pybind11/detail/typeid.h @@ -16,6 +16,8 @@ #include #endif +#include "common.h" + NAMESPACE_BEGIN(PYBIND11_NAMESPACE) NAMESPACE_BEGIN(detail) /// Erase all occurrences of a substring