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
1 changed files with 5 additions and 0 deletions

View File

@ -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