Added definition for HUGE_VAL.

This commit is contained in:
Dimitrie O. Paun 2004-04-09 19:02:45 +00:00 committed by Alexandre Julliard
parent 1595729abc
commit a5686fe589
1 changed files with 12 additions and 0 deletions

View File

@ -86,6 +86,18 @@ double yn(int, double);
int MSVCRT(_matherr)(struct MSVCRT(_exception)*);
double MSVCRT(_cabs)(struct MSVCRT(_complex));
#ifndef HUGE_VAL
# if defined(__GNUC__) && (__GNUC__ >= 3)
# define HUGE_VAL (__extension__ 0x1.0p2047)
# else
static const union {
unsigned char __c[8];
double __d;
} __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
# define HUGE_VAL (__huge_val.__d)
# endif
#endif
#ifdef __cplusplus
}
#endif