From 697fa6fe670d20403c63de0746aaa6a706c7ca3b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Nov 2021 20:57:32 -0400 Subject: [PATCH] sim: sh: fix isnan redefinition with mingw targets The code assumes that all _WIN32 targets are the same and can define isnan to _isnan. For mingw targets, they provide an isnan define already, so no need for the fallback here. --- sim/sh/interp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 2bae4484e34..c4ac5b3e66b 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -65,8 +65,10 @@ #ifdef _WIN32 #include /* Needed for _isnan() */ +#ifndef isnan #define isnan _isnan #endif +#endif #ifndef SIGBUS #define SIGBUS SIGSEGV -- 2.30.2