aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-09-16 16:45:50 +0800
committermarkm <markm@FreeBSD.org>2003-09-16 16:45:50 +0800
commitf86b7a7501637722226fdc1f07ee4af5d9c827b5 (patch)
treed50b62d7012f0d8a4c7ed36aabe4e18b99f895e8
parentaab8a3aa74c412b3c3aa61771079a04eb029e09c (diff)
downloadfreebsd-ports-gnome-f86b7a7501637722226fdc1f07ee4af5d9c827b5.tar.gz
freebsd-ports-gnome-f86b7a7501637722226fdc1f07ee4af5d9c827b5.tar.zst
freebsd-ports-gnome-f86b7a7501637722226fdc1f07ee4af5d9c827b5.zip
Fix for 4.*.
Submitted by: Bakul Shah <bakul@bitblocks.com>
-rw-r--r--lang/gcl/files/patch-h_gclincl.h.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/gcl/files/patch-h_gclincl.h.in b/lang/gcl/files/patch-h_gclincl.h.in
new file mode 100644
index 000000000000..cdee7b73b438
--- /dev/null
+++ b/lang/gcl/files/patch-h_gclincl.h.in
@@ -0,0 +1,17 @@
+--- h/gclincl.h.in.orig Wed Feb 26 15:26:41 2003
++++ h/gclincl.h.in Mon Sep 15 17:18:53 2003
+@@ -119,7 +119,14 @@
+ #include <ieeefp.h>
+ #define ISNORMAL(a) (fpclass(a)>=FP_NZERO)
+ #else
++#define HAVE_FLOAT_H 1
++#ifdef HAVE_FLOAT_H
++#include <float.h>
++#define ISNORMAL(a) \
++ ((DBL_MIN<=(a) && (a)<=DBL_MAX) || (DBL_MIN<=(-a) && (-a)<=DBL_MAX))
++#else
+ #error "No isnormal found"
++#endif
+ #endif
+ #endif
+ #endif