1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Enable building with Visual Studion 2013.

Backpatch to 9.3.

Brar Piening.
This commit is contained in:
Andrew Dunstan
2014-01-26 09:45:43 -05:00
parent 8cb90b21af
commit 56c08df55b
9 changed files with 141 additions and 26 deletions

View File

@@ -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'. */

View File

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