summaryrefslogtreecommitdiff
path: root/src/include/port/win32.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2014-01-26 09:49:10 -0500
committerAndrew Dunstan <andrew@dunslane.net>2014-01-26 09:49:10 -0500
commitcec8394b5ccd32259e446f963690dd4784646b4d (patch)
tree43df0a04e6e3201cb38101a07ab27fbfe22297c4 /src/include/port/win32.h
parent00ba97365d356823c48c02147b4cd66f8f06b1d6 (diff)
Enable building with Visual Studion 2013.
Backpatch to 9.3. Brar Piening.
Diffstat (limited to 'src/include/port/win32.h')
-rw-r--r--src/include/port/win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 2c2d93765ee..974807f5841 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -427,8 +427,10 @@ typedef unsigned short mode_t;
#define W_OK 2
#define R_OK 4
+#if (_MSC_VER < 1800)
#define isinf(x) ((_fpclass(x) == _FPCLASS_PINF) || (_fpclass(x) == _FPCLASS_NINF))
#define isnan(x) _isnan(x)
+#endif
/* Pulled from Makefile.port in mingw */
#define DLSUFFIX ".dll"