Commit f81bc3de authored by dearblue's avatar dearblue

Fixed compile error for `mrbgems/mruby-cmath` with `clang++`

If the preprocessor check part is only `__clang__`, CI's such as `Ubuntu-2004-clang` will fail to compile.
This is why we limited the addition to FreeBSD and OpenBSD, which have `clang++` in their base systems.
DragonFly BSD and NetBSD have GCC built into their base systems, so nothing is changed.
parent e4d69177
...@@ -92,7 +92,7 @@ CXDIVc(mrb_complex a, mrb_complex b) ...@@ -92,7 +92,7 @@ CXDIVc(mrb_complex a, mrb_complex b)
#else #else
#if defined(__cplusplus) && defined(__APPLE__) #if defined(__cplusplus) && (defined(__APPLE__) || (defined(__clang__) && (defined(__FreeBSD__) || defined(__OpenBSD__))))
#ifdef MRB_USE_FLOAT32 #ifdef MRB_USE_FLOAT32
typedef std::complex<float> mrb_complex; typedef std::complex<float> mrb_complex;
......
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