Skip to content

Commit 203f6d9

Browse files
committed
2. IRIX has both HAVE_FPCLASS and HAVE_FP_CLASS, therefore, in
backend/port/isinf.c it tries to compile two versions of isinf(). From: Andrew Martin <martin@biochemistry.ucl.ac.uk>
1 parent 25ad143 commit 203f6d9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/backend/port/isinf.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: isinf.c,v 1.2 1998/02/02 00:03:46 scrappy Exp $ */
1+
/* $Id: isinf.c,v 1.3 1998/02/17 02:00:12 scrappy Exp $ */
22

33
#include <math.h>
44
#include "config.h"
@@ -24,28 +24,29 @@ isinf(double d)
2424
}
2525
return (0);
2626
}
27-
#endif
27+
#else
2828

29-
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
29+
# if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
3030
# if HAVE_FP_CLASS_H
31-
# include <fp_class.h>
31+
# include <fp_class.h>
3232
# endif
3333
int
3434
isinf(x)
3535
double x;
3636
{
37-
#if HAVE_FP_CLASS
37+
# if HAVE_FP_CLASS
3838
int fpclass = fp_class(x);
39-
#else
39+
# else
4040
int fpclass = fp_class_d(x);
41-
#endif
41+
# endif
4242

4343
if (fpclass == FP_POS_INF)
4444
return (1);
4545
if (fpclass == FP_NEG_INF)
4646
return (-1);
4747
return (0);
4848
}
49+
# endif
4950
#endif
5051

5152
#if defined(HAVE_CLASS)

0 commit comments

Comments
 (0)