From d183edf54e3c74c52471c694068ec7fcc5f7aa34 Mon Sep 17 00:00:00 2001 From: Sayed Adel Date: Wed, 15 Mar 2023 21:24:04 +0200 Subject: ENH: Raise C++ standard to C++17 --- numpy/core/src/npymath/npy_math_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy/core/src') diff --git a/numpy/core/src/npymath/npy_math_private.h b/numpy/core/src/npymath/npy_math_private.h index a474b3de3..20c94f98a 100644 --- a/numpy/core/src/npymath/npy_math_private.h +++ b/numpy/core/src/npymath/npy_math_private.h @@ -21,6 +21,7 @@ #include #ifdef __cplusplus #include +#include using std::isgreater; using std::isless; #else @@ -494,8 +495,9 @@ do { \ * Microsoft C defines _MSC_VER * Intel compiler does not use MSVC complex types, but defines _MSC_VER by * default. + * since c++17 msvc is no longer support them. */ -#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#if !defined(__cplusplus) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) typedef union { npy_cdouble npy_z; _Dcomplex c99_z; -- cgit v1.2.1