From 7585deb0878bca96eee9a3e00fb5726c7725831c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 16 Dec 1999 01:25:23 +0000 Subject: I have done the QNX4 port with the current source tree. The number of backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos --- src/backend/port/isinf.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/backend/port/isinf.c') diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c index 441883fc20c..5bcb813a60d 100644 --- a/src/backend/port/isinf.c +++ b/src/backend/port/isinf.c @@ -1,4 +1,4 @@ -/* $Id: isinf.c,v 1.13 1999/07/30 03:45:44 momjian Exp $ */ +/* $Id: isinf.c,v 1.14 1999/12/16 01:25:02 momjian Exp $ */ #include @@ -51,7 +51,7 @@ double x; return 0; } -#else defined(HAVE_CLASS) +#elif defined(HAVE_CLASS) int isinf(double x) { @@ -66,3 +66,18 @@ isinf(double x) #endif #endif + +#ifdef __QNX__ +#include + +int +isinf(double x) +{ + if (x == HUGE_VAL) + return 1; + if (x == -HUGE_VAL) + return -1; + return 0; +} + +#endif -- cgit v1.2.3