fix: link to corecrt on MSVC 2022

This commit is contained in:
Henry Schreiner 2021-11-18 08:57:11 -05:00
parent 3f8db35232
commit d0fc077d88

View File

@ -32,6 +32,11 @@
# define PYBIND11_STD_LAUNDER # define PYBIND11_STD_LAUNDER
# define PYBIND11_HAS_STD_LAUNDER 0 # define PYBIND11_HAS_STD_LAUNDER 0
#endif #endif
#if defined(_MSC_VER) && (_MSC_VER >= 1930)
#include <corecrt.h>
#endif
#if defined(__GNUG__) && !defined(__clang__) #if defined(__GNUG__) && !defined(__clang__)
# include <cxxabi.h> # include <cxxabi.h>
#endif #endif