mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Fix configure problem.
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
/* $Id: isinf.c,v 1.10 1999/07/18 17:38:23 momjian Exp $ */
|
||||
/* $Id: isinf.c,v 1.11 1999/07/18 20:43:12 momjian Exp $ */
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef NOT_USED
|
||||
|
||||
#if HAVE_FPCLASS
|
||||
#if HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
#endif
|
||||
#if HAVE_FP_CLASS_H
|
||||
#include <fp_class.h>
|
||||
#endif
|
||||
|
||||
int
|
||||
isinf(double d)
|
||||
{
|
||||
@@ -29,6 +23,12 @@ isinf(double d)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
|
||||
#if HAVE_FP_CLASS_H
|
||||
#include <fp_class.h>
|
||||
#endif
|
||||
int
|
||||
isinf(x)
|
||||
double x;
|
||||
@@ -49,3 +49,19 @@ double x;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_CLASS)
|
||||
int
|
||||
isinf(double x)
|
||||
{
|
||||
int fpclass = class(x);
|
||||
|
||||
if (fpclass == FP_PLUS_INF)
|
||||
return 1;
|
||||
if (fpclass == FP_MINUS_INF)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user