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 committed 2013-01-04 20:36:34 +01:00
1 parent 87781ac64c
commit 2ba3f44db5
2 files changed
+40

No files matched your search

+1
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