Commit 642aefeb authored by Evan Nemerson's avatar Evan Nemerson

complex: fix checks for GCC C complex math support

If either __cplusplus or __STRICT_ANSI__ is defined we don't want
to use the GCC-style support.

This isn't nearly as big a deal as it might sound like; we just use
<complex.h>.  The GCC/clang style is really only there for non-hosted
environments or other systems lacking <complex.h>.
parent 4010f30f
......@@ -45,7 +45,7 @@
HEDLEY_HAS_BUILTIN(__builtin_creal) || \
HEDLEY_GCC_VERSION_CHECK(4,7,0) || \
HEDLEY_INTEL_VERSION_CHECK(13,0,0) \
) && (!defined(__cplusplus) || !defined(__STRICT_ANSI__))
) && (!defined(__cplusplus) && !defined(__STRICT_ANSI__))
HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DIAGNOSTIC_DISABLE_C99_EXTENSIONS_
typedef __complex__ float simde_cfloat32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment