Changed some MSVC compatibility defines based on MSVC version. (#724)
This commit is contained in:

committed by
Nguyen Anh Quynh

parent
17f01469ad
commit
9fac29d154
@ -4,6 +4,7 @@
|
||||
#define COMPILER_H
|
||||
|
||||
#include "config-host.h"
|
||||
#include "unicorn/platform.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// MSVC support
|
||||
@ -13,7 +14,10 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
#if _MSC_VER < MSC_VER_VS2013
|
||||
#define isinf(x) (!_finite(x))
|
||||
#endif
|
||||
|
||||
static double rint( double x )
|
||||
{
|
||||
|
Reference in New Issue
Block a user