Commit a5686fe5 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Added definition for HUGE_VAL.

parent 1595729a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment