summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-cmath
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-06 19:30:59 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-02-06 19:30:59 +0900
commitef8f475722410e8d36e5a8c44257f07d8afa2145 (patch)
tree23b3b631f7e33217dbb02330a7b372a92d20b840 /mrbgems/mruby-cmath
parentc6c632cf97719e7b2d7e1e574eec95dfc6a47d2d (diff)
downloadmruby-ef8f475722410e8d36e5a8c44257f07d8afa2145.tar.gz
mruby-ef8f475722410e8d36e5a8c44257f07d8afa2145.zip
MinGW does not need MSVC hack.
Both MinGW and MSVC provide _WIN32 macro.
Diffstat (limited to 'mrbgems/mruby-cmath')
-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 857b58d26..72217e4cb 100644
--- a/mrbgems/mruby-cmath/src/cmath.c
+++ b/mrbgems/mruby-cmath/src/cmath.c
@@ -50,7 +50,7 @@ cmath_get_complex(mrb_state *mrb, mrb_value c, mrb_float *r, mrb_float *i)
#endif
#define F(x) x
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__MINGW32__)
#ifdef MRB_USE_FLOAT32
typedef _Fcomplex mrb_complex;