commit | ae8b10b96abf24633b274f82d7b03e496a65cfbb | [log] [tgz] |
---|---|---|
author | Marcus Meissner <marcus@jet.franken.de> | Tue Dec 15 13:01:21 1998 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Dec 15 13:01:21 1998 +0000 |
tree | 8f114437d35a35ce19d7a7f5182e999b5e55d654 | |
parent | 5696a09dccfd6c13d70bb9cafcd7d730bc894540 [diff] [blame] |
Check for MAXFLOAT if FLT_MAX isn't there.
diff --git a/ole/variant.c b/ole/variant.c index 7eaf58d..5ea1b7d 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;