]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make sure that symbols are declared in math.h iff the appropriate
authordas <das@FreeBSD.org>
Sun, 25 Apr 2004 02:35:42 +0000 (02:35 +0000)
committerdas <das@FreeBSD.org>
Sun, 25 Apr 2004 02:35:42 +0000 (02:35 +0000)
commitd24349d79f5419c746158b6eea486a85194be79b
tree0d72f337b75a3f9bc1065192044d49b2bdf2893b
parent1e626ef3b4f847c6f889cff7f14c6987776f2004
Make sure that symbols are declared in math.h iff the appropriate
namespaces are visible.  Previously, math.h failed to hide some C99-,
XSI-, and BSD-specific symbols in certain compilation environments.

The referenced PR has a nice listing of the appropriate conditions for
making symbols visible in math.h.  The only non-stylistic difference
between the patch in the PR and this commit is that I superfluously
test for __BSD_VISIBLE in a few places to be more explicit about which
symbols have historically been part of the FreeBSD environment.

PR: 65939
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
lib/msun/src/math.h