Avoid removing macro _CRT_USE_C_COMPLEX_H if pre-existing (#393)

This commit is contained in:
Fabien Péan
2023-01-27 19:27:44 +01:00
committed by GitHub
parent 12814dc6b1
commit 6be238e703
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ arpack-ng - 3.9.0
[ Fabien Péan ]
* CI: Enable job `windows_latest_cmake` to run all tests
* CMake: Fix BLAS and LAPACK static library order needed to consume the library on Windows with static linkage
* Fix using ARPACK on Windows with MSVC compiler from C++17 onwards
[ Zhentao Wang ]
* [BUG FIX] parpack.h and parpack.hpp: type of rwork should be real instead of complex.
+4
View File
@@ -14,9 +14,13 @@
#define a_uint unsigned int
#endif
#ifdef _MSC_VER
#ifndef _CRT_USE_C_COMPLEX_H
#define _CRT_USE_C_COMPLEX_H
#include <complex.h>
#undef _CRT_USE_C_COMPLEX_H
#else
#include <complex.h>
#endif
#define a_fcomplex _Fcomplex
#define a_dcomplex _Dcomplex
#ifndef CMPLXF