summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2003-09-16 08:45:50 +0000
committerMark Murray <markm@FreeBSD.org>2003-09-16 08:45:50 +0000
commit6be419559e62a72b7945c08689854f921830c30a (patch)
treee16434322c902d85f2477d8725dd0cf2ed8cbd96 /lang
parent (*) Back out previous commit due to portfreeze (diff)
Fix for 4.*.
Submitted by: Bakul Shah <bakul@bitblocks.com>
Notes
Notes: svn path=/head/; revision=89005
Diffstat (limited to 'lang')
-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