isnan() fix for msvc2013 onwards (#729)
* Changed some MSVC compatibility defines based on MSVC version. * Added prebuild_script.bat to remove leftover configure generated files before building. Also added project files and MSVC copies of configure generated files for all supported CPUs. * Moved ./bindings/msvc_native into ./msvc * Remove old project dir. * isnan() fix for msvc2013 onwards
This commit is contained in:
parent
f857b9cf39
commit
1a9ebbecde
|
@ -17,7 +17,13 @@
|
|||
|
||||
#if _MSC_VER < MSC_VER_VS2013
|
||||
#define isinf(x) (!_finite(x))
|
||||
#if defined(_WIN64)
|
||||
#define isnan _isnanf
|
||||
#else
|
||||
#define isnan _isnan
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
static double rint( double x )
|
||||
{
|
||||
|
|
|
@ -379,13 +379,4 @@ static inline int ctpop64(uint64_t val)
|
|||
# error Unknown sizeof long
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <float.h>
|
||||
#if defined(_WIN64)
|
||||
#define isnan _isnanf
|
||||
#else
|
||||
#define isnan _isnan
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue