forked from mindspore-Ecosystem/mindspore
14 lines
624 B
Plaintext
14 lines
624 B
Plaintext
diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h
|
|
index 3bffbb28..4a6a9809 100644
|
|
--- a/include/pybind11/pybind11.h
|
|
+++ b/include/pybind11/pybind11.h
|
|
@@ -21,6 +21,7 @@
|
|
# pragma warning disable 1875 // offsetof applied to non-POD (Plain Old Data) types is nonstandard
|
|
# pragma warning disable 2196 // warning #2196: routine is both "inline" and "noinline"
|
|
#elif defined(_MSC_VER)
|
|
+#include <corecrt.h>
|
|
# pragma warning(push)
|
|
# pragma warning(disable: 4100) // warning C4100: Unreferenced formal parameter
|
|
# pragma warning(disable: 4127) // warning C4127: Conditional expression is constant
|
|
|