From: Mike Frysinger Date: Sun, 7 Nov 2021 00:57:32 +0000 (-0400) Subject: sim: sh: fix isnan redefinition with mingw targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=697fa6fe670d20403c63de0746aaa6a706c7ca3b;p=binutils-gdb.git 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. --- 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