diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-01-25 13:58:29 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-01-25 13:58:29 -0800 |
commit | 5ed6636a950d39bc2fec9b3485f229eb7f0852e1 (patch) | |
tree | 9e714727466f16ddee56fbc4452c3e1a83d85b5b /com32/include/math.h | |
parent | ef80edcda1d202abf19e69fd510b0a3e5ca3752d (diff) | |
download | syslinux-5ed6636a950d39bc2fec9b3485f229eb7f0852e1.tar.gz |
Compilation fix for older gcc where __DBL_*_EXP__ isn't defined
Diffstat (limited to 'com32/include/math.h')
-rw-r--r-- | com32/include/math.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/com32/include/math.h b/com32/include/math.h index 5aaa9ada..e3d248fd 100644 --- a/com32/include/math.h +++ b/com32/include/math.h @@ -1,6 +1,13 @@ #ifndef _MATH_H #define _MATH_H +#ifndef __DBL_MIN_EXP__ +# define __DBL_MIN_EXP__ (-1021) +#endif +#ifndef __DBL_MAX_EXP__ +# define __DBL_MAX_EXP__ 1024 +#endif + double pow(double, double); double fabs(double); double strtod(const char *, char **); |