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:
rofl0r 2013-01-04 13:05:42 +01:00
commit 2ba3f44db5
2 changed files with 40 additions and 0 deletions

View file

@ -346,6 +346,7 @@ long double truncl(long double);
#if defined(_XOPEN_SOURCE) || defined(_BSD_SOURCE)
#undef MAXFLOAT
#define MAXFLOAT 3.40282347e+38F
#endif