diff --git a/tests/mpn/t-dc_divappr_q_n.c b/tests/mpn/t-dc_divappr_q_n.c index 76f8572a..953dea12 100644 --- a/tests/mpn/t-dc_divappr_q_n.c +++ b/tests/mpn/t-dc_divappr_q_n.c @@ -27,7 +27,7 @@ MA 02110-1301, USA. */ #include "gmp-impl.h" #include "tests.h" -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #define random rand #endif diff --git a/tests/mpn/t-sb_divappr_q.c b/tests/mpn/t-sb_divappr_q.c index 221457c4..288d96c8 100644 --- a/tests/mpn/t-sb_divappr_q.c +++ b/tests/mpn/t-sb_divappr_q.c @@ -27,7 +27,7 @@ MA 02110-1301, USA. */ #include "gmp-impl.h" #include "tests.h" -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #define random rand #endif