1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +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:49:10 -05:00
parent 00ba97365d
commit cec8394b5c
9 changed files with 140 additions and 25 deletions

View File

@ -111,6 +111,14 @@ get_float8_infinity(void)
#endif
}
/*
* The funny placements of the two #pragmas is necessary because of a
* long lived bug in the Microsoft compilers.
* See http://support.microsoft.com/kb/120968/en-us for details
*/
#if (_MSC_VER >= 1800)
#pragma warning(disable:4756)
#endif
float
get_float4_infinity(void)
{
@ -118,6 +126,9 @@ get_float4_infinity(void)
/* C99 standard way */
return (float) INFINITY;
#else
#if (_MSC_VER >= 1800)
#pragma warning(default:4756)
#endif
/*
* On some platforms, HUGE_VAL is an infinity, elsewhere it's just the