fix: link to corecrt on MSVC 2022
diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index cfe03f6..c603a4b 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 <corecrt.h> +#endif + #if defined(__GNUG__) && !defined(__clang__) # include <cxxabi.h> #endif