Check for MAXFLOAT if FLT_MAX isn't there.

This commit is contained in:
Marcus Meissner 1998-12-15 13:01:21 +00:00 committed by Alexandre Julliard
parent 5696a09dcc
commit ae8b10b96a
1 changed files with 11 additions and 0 deletions

View File

@ -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;