mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 06:38:20 +00:00
Patch to support MSVC, contributed by Morten Ofstad
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,6 +24,9 @@ using std::isinf;
|
|||||||
// apparently this has been a problem with Solaris for years.
|
// apparently this has been a problem with Solaris for years.
|
||||||
# include <ieeefp.h>
|
# include <ieeefp.h>
|
||||||
static int isinf(double x) { return !finite(x) && x==x; }
|
static int isinf(double x) { return !finite(x) && x==x; }
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#include <float.h>
|
||||||
|
#define isinf(X) (!_finite(X))
|
||||||
#else
|
#else
|
||||||
# error "Don't know how to get isinf()"
|
# error "Don't know how to get isinf()"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user