Update pybind11.h

This commit is contained in:
Henry Schreiner 2021-11-18 09:29:46 -05:00 committed by GitHub
parent d0fc077d88
commit 317cf0feaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,11 @@
#pragma once #pragma once
// Bug in MSVC 2022 requiring this file first
#if defined(_MSC_VER) && (_MSC_VER >= 1930)
#include <corecrt.h>
#endif
#include "attr.h" #include "attr.h"
#include "gil.h" #include "gil.h"
#include "options.h" #include "options.h"
@ -33,10 +38,6 @@
# 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