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.
This commit is contained in:
Mike Frysinger 2021-11-06 20:57:32 -04:00
parent fd0975b96b
commit 697fa6fe67

View File

@ -65,8 +65,10 @@
#ifdef _WIN32
#include <float.h> /* Needed for _isnan() */
#ifndef isnan
#define isnan _isnan
#endif
#endif
#ifndef SIGBUS
#define SIGBUS SIGSEGV