Merge pull request #5588 from dearblue/cmath+clang++

Fixed compile error for `mrbgems/mruby-cmath` with `clang++`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-11-28 19:04:57 +09:00
committed by GitHub
+1 -1
View File
@@ -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;