summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAndrew Dunstan2014-01-26 14:45:43 +0000
committerAndrew Dunstan2014-01-26 14:45:43 +0000
commit56c08df55be5a3f12ddc45edcf29b6ecc4111e59 (patch)
tree028c18436ef53f36b79dd5ed45e8ac90ba3be8ce /src/include
parent8cb90b21af3cc52c21d8a43e2d9f125113ad9f4f (diff)
Enable building with Visual Studion 2013.
Backpatch to 9.3. Brar Piening.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pg_config.h.win325
-rw-r--r--src/include/port/win32.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index 5bd7545f65d..61ccb54881e 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -307,7 +307,10 @@
/* #undef HAVE_READLINK */
/* Define to 1 if you have the `rint' function. */
-/*#define HAVE_RINT 1*/
+#if (_MSC_VER >= 1800)
+#define HAVE_RINT 1
+#endif
+
/* Define to 1 if you have the global variable
'rl_completion_append_character'. */
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"