mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Cope with recent HPUX versions providing isfinite() instead of finite().
This commit is contained in:
parent
5042985fb4
commit
3cd16475db
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.109 2004/08/29 05:06:49 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.110 2004/09/02 17:12:50 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -81,6 +81,12 @@
|
|||||||
#define SHRT_MIN (-32768)
|
#define SHRT_MIN (-32768)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Recent HPUXen have isfinite() macro in place of more standard finite() */
|
||||||
|
#if !defined(HAVE_FINITE) && defined(isfinite)
|
||||||
|
#define finite(x) isfinite(x)
|
||||||
|
#define HAVE_FINITE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* not sure what the following should be, but better to make it over-sufficient */
|
/* not sure what the following should be, but better to make it over-sufficient */
|
||||||
#define MAXFLOATWIDTH 64
|
#define MAXFLOATWIDTH 64
|
||||||
#define MAXDOUBLEWIDTH 128
|
#define MAXDOUBLEWIDTH 128
|
||||||
|
Loading…
x
Reference in New Issue
Block a user