projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd0975b
)
sim: sh: fix isnan redefinition with mingw targets
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 7 Nov 2021 00:57:32 +0000
(20:57 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 7 Nov 2021 00:57:32 +0000
(20:57 -0400)
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
patch
|
blob
|
history
diff --git
a/sim/sh/interp.c
b/sim/sh/interp.c
index 2bae4484e349ae37e2498cefb9a550ef4228e61b..c4ac5b3e66b1efbccb31c022924fdf4e2bfd6ae6 100644
(file)
--- 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