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 #include +#ifdef HAVE_FLOAT_H +# include +#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;