summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-cmath/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-07 15:28:23 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-02-07 15:28:23 +0900
commit530afca2d7a1bb4347fcf440f2137fd87f5b5d64 (patch)
tree4703a1af5352cfb9e3473961982ca59124bae6d9 /mrbgems/mruby-cmath/src
parent1cc20978cfed14111c8962c4eee5370032c2557d (diff)
downloadmruby-530afca2d7a1bb4347fcf440f2137fd87f5b5d64.tar.gz
mruby-530afca2d7a1bb4347fcf440f2137fd87f5b5d64.zip
Move `F(x)` definition inside of `#ifdef`; fix #5330
Diffstat (limited to 'mrbgems/mruby-cmath/src')
-rw-r--r--mrbgems/mruby-cmath/src/cmath.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mrbgems/mruby-cmath/src/cmath.c b/mrbgems/mruby-cmath/src/cmath.c
index 72217e4cb..8e94d1563 100644
--- a/mrbgems/mruby-cmath/src/cmath.c
+++ b/mrbgems/mruby-cmath/src/cmath.c
@@ -47,8 +47,8 @@ cmath_get_complex(mrb_state *mrb, mrb_value c, mrb_float *r, mrb_float *i)
#ifdef MRB_USE_FLOAT32
#define F(x) x##f
#else
-#endif
#define F(x) x
+#endif
#if defined(_WIN32) && !defined(__MINGW32__)
@@ -91,7 +91,6 @@ CXDIVc(mrb_complex a, mrb_complex b)
return CX(cr, ci);
}
-
#else
#if defined(__cplusplus) && defined(__APPLE__)