diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 20:57:32 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-06 20:57:32 -0400 |
commit | 697fa6fe670d20403c63de0746aaa6a706c7ca3b (patch) | |
tree | d9d2131d2cd0e6f7325a009aee12710b1dfec0a4 /sim/sh/interp.c | |
parent | fd0975b96b16d96010dce439af9620d3dfb65426 (diff) | |
download | fsf-binutils-gdb-697fa6fe670d20403c63de0746aaa6a706c7ca3b.zip fsf-binutils-gdb-697fa6fe670d20403c63de0746aaa6a706c7ca3b.tar.gz fsf-binutils-gdb-697fa6fe670d20403c63de0746aaa6a706c7ca3b.tar.bz2 |
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.
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r-- | sim/sh/interp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 2bae448..c4ac5b3 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -65,8 +65,10 @@ #ifdef _WIN32 #include <float.h> /* Needed for _isnan() */ +#ifndef isnan #define isnan _isnan #endif +#endif #ifndef SIGBUS #define SIGBUS SIGSEGV |