Skip to content

Commit

Permalink
Test including "complex.h" in MSVC (#5527)
Browse files Browse the repository at this point in the history
Follow up to d8bb216 just to
ensure the behaviour is tested.
  • Loading branch information
da-woods committed Jul 12, 2023
1 parent 36a3702 commit c0a3556
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/run/complex_numbers_c99_T398.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
#include <complex.h>
#if !defined(_Complex_I)
#error The "complex.h" header does not define the '_Complex_I' macro.
#error Please report this to Cython developers <cython-dev@codespeak.net>
#error Please report this to Cython developers <github.com/cython/cython/issues>
#endif

#elif defined(_MSC_VER)
/* Although the MSVC compilers implementation of complex isn't
compatible with Cython, it shouldn't cause Cython to define
CYTHON_CCOMPLEX. Instead Cython should use it's own complex
implementation.
*/
#include <complex.h>
#endif
#endif

0 comments on commit c0a3556

Please sign in to comment.