diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-11-28 19:04:57 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-28 19:04:57 +0900 |
| commit | a0f38005fb85535ba320e08fd4c28e54668e7a7b (patch) | |
| tree | 9ec112504dc8179a3b6732d347973f00cb53d547 /mrbgems/mruby-cmath/src/cmath.c | |
| parent | 6bb2af966697910425eadffd5813e4677e924cb4 (diff) | |
| parent | f81bc3de387e3ff229433a2db8632b33bd62e94f (diff) | |
| download | mruby-a0f38005fb85535ba320e08fd4c28e54668e7a7b.tar.gz mruby-a0f38005fb85535ba320e08fd4c28e54668e7a7b.zip | |
Merge pull request #5588 from dearblue/cmath+clang++
Fixed compile error for `mrbgems/mruby-cmath` with `clang++`
Diffstat (limited to 'mrbgems/mruby-cmath/src/cmath.c')
| -rw-r--r-- | mrbgems/mruby-cmath/src/cmath.c | 2 |
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; |
