From 56c08df55be5a3f12ddc45edcf29b6ecc4111e59 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 26 Jan 2014 09:45:43 -0500 Subject: Enable building with Visual Studion 2013. Backpatch to 9.3. Brar Piening. --- src/backend/utils/adt/float.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/backend/utils/adt/float.c') diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c index b6c31c2fd92..b035e231d1e 100644 --- a/src/backend/utils/adt/float.c +++ b/src/backend/utils/adt/float.c @@ -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 -- cgit v1.2.3