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:
1 parent
87781ac64c
commit
2ba3f44db5
2 files changed
+40
No files matched your search
@@ -346,6 +346,7 @@ long double truncl(long double);
|
||||
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(_BSD_SOURCE)
|
||||
#undef MAXFLOAT
|
||||
#define MAXFLOAT 3.40282347e+38F
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user