add legacy header values.h
some programs (procps, babl) expect it, and it doesn't seem to cause any harm to just add it. it's small and straightforward. since math.h also defines MAXFLOAT, we undef it in both places, before defining it.
This commit is contained in:
parent
87781ac64c
commit
2ba3f44db5
2 changed files with 40 additions and 0 deletions
|
|
@ -346,6 +346,7 @@ long double truncl(long double);
|
|||
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_BSD_SOURCE)
|
||||
#undef MAXFLOAT
|
||||
#define MAXFLOAT 3.40282347e+38F
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue