From d0fc077d88ec868569f7d96914dfe4321935fde7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 18 Nov 2021 08:57:11 -0500 Subject: [PATCH] fix: link to corecrt on MSVC 2022 --- include/pybind11/pybind11.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index cfe03f6db..c603a4b24 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -32,6 +32,11 @@ # define PYBIND11_STD_LAUNDER # define PYBIND11_HAS_STD_LAUNDER 0 #endif + +#if defined(_MSC_VER) && (_MSC_VER >= 1930) +#include +#endif + #if defined(__GNUG__) && !defined(__clang__) # include #endif