summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-11-28 19:04:57 +0900
committerGitHub <[email protected]>2021-11-28 19:04:57 +0900
commita0f38005fb85535ba320e08fd4c28e54668e7a7b (patch)
tree9ec112504dc8179a3b6732d347973f00cb53d547
parent6bb2af966697910425eadffd5813e4677e924cb4 (diff)
parentf81bc3de387e3ff229433a2db8632b33bd62e94f (diff)
downloadmruby-a0f38005fb85535ba320e08fd4c28e54668e7a7b.tar.gz
mruby-a0f38005fb85535ba320e08fd4c28e54668e7a7b.zip
Merge pull request #5588 from dearblue/cmath+clang++
Fixed compile error for `mrbgems/mruby-cmath` with `clang++`
-rw-r--r--mrbgems/mruby-cmath/src/cmath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-cmath/src/cmath.c b/mrbgems/mruby-cmath/src/cmath.c
index 8b0c4d04a..de59adf96 100644
--- a/mrbgems/mruby-cmath/src/cmath.c
+++ b/mrbgems/mruby-cmath/src/cmath.c
@@ -92,7 +92,7 @@ CXDIVc(mrb_complex a, mrb_complex b)
#else
-#if defined(__cplusplus) && defined(__APPLE__)
+#if defined(__cplusplus) && (defined(__APPLE__) || (defined(__clang__) && (defined(__FreeBSD__) || defined(__OpenBSD__))))
#ifdef MRB_USE_FLOAT32
typedef std::complex<float> mrb_complex;