From caf1cbe93e758b4f38d39a1ed0d2fa66187a0915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sun, 25 Jan 2026 12:32:36 -0500 Subject: [PATCH] python: fix Message.bytes when building with boost --- bindings/python/pylibremidi.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bindings/python/pylibremidi.cpp b/bindings/python/pylibremidi.cpp index c671dc2..56a2145 100644 --- a/bindings/python/pylibremidi.cpp +++ b/bindings/python/pylibremidi.cpp @@ -12,6 +12,20 @@ #include +#if __has_include() +#include +#include +#endif + +NAMESPACE_BEGIN(NB_NAMESPACE) +NAMESPACE_BEGIN(detail) + +template struct type_caster> : list_caster, Type> {}; +template struct type_caster> : list_caster, Type> {}; + +NAMESPACE_END(detail) +NAMESPACE_END(NB_NAMESPACE) + namespace libremidi { namespace poll_queue { struct error_message {