[runtime] Fix the windows build. Define _WINSOCKAPI_ to fix the compilation problems...
[mono.git] / mono / utils / mono-compiler.h
index c1d0e27a49cb85d35aca8d34865d28aaa8b63fbf..2b330b9bb9dfcc21decaf4a81e359a6241aaf5e1 100644 (file)
 #endif
 
 #include <float.h>
-#define isnan(x)       _isnan(x)
 #define trunc(x)       (((x) < 0) ? ceil((x)) : floor((x)))
+#if _MSC_VER < 1800 /* VS 2013 */
+#define isnan(x)       _isnan(x)
 #define isinf(x)       (_isnan(x) ? 0 : (_fpclass(x) == _FPCLASS_NINF) ? -1 : (_fpclass(x) == _FPCLASS_PINF) ? 1 : 0)
 #define isnormal(x)    _finite(x)
+#endif
 
 #define popen          _popen
 #define pclose         _pclose