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:
xorstream 2017-01-22 19:14:05 +11:00 committed by Nguyen Anh Quynh
parent f857b9cf39
commit 1a9ebbecde
2 changed files with 6 additions and 9 deletions

View File

@ -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 )
{

View File

@ -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