]> granicus.if.org Git - postgresql/commit
Use a more bulletproof test for whether finite() and isinf() are present.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jan 2006 19:23:41 +0000 (19:23 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jan 2006 19:23:41 +0000 (19:23 +0000)
commite2c60a2cfe3b8f12564133d18d62d6dece12c63f
tree593754cdaf2e84b2b895dc08bbba3dc659f68702
parent34b0ac6ada5e7e9ea99a4059a5ed5d5f34142147
Use a more bulletproof test for whether finite() and isinf() are present.
It seems that recent gcc versions can optimize away calls to these functions
even when the functions do not exist on the platform, resulting in a bogus
positive result.  Avoid this by using a non-constant argument and ensuring
that the function result is not simply discarded.  Per report from
François Laupretre.
configure
configure.in