From ae8b10b96abf24633b274f82d7b03e496a65cfbb Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Tue, 15 Dec 1998 13:01:21 +0000
Subject: [PATCH] Check for MAXFLOAT if FLT_MAX isn't there.

---
 ole/variant.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ole/variant.c b/ole/variant.c
index 7eaf58d27ac..5ea1b7d4f98 100644
--- a/ole/variant.c
+++ b/ole/variant.c
@@ -31,6 +31,17 @@
 #include <math.h>
 #include <time.h>
 
+#ifdef HAVE_FLOAT_H
+# include <float.h>
+#endif
+
+#ifndef FLT_MAX
+# ifdef MAXFLOAT
+#  define FLT_MAX MAXFLOAT
+# else
+#  error "Can't find #define for MAXFLOAT/FLT_MAX"
+# endif
+#endif
 
 static const char CHAR_MAX = 127;
 static const char CHAR_MIN = -128;
-- 
GitLab