mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Make strfmon_l() work without requiring the use of <xlocale.h>.
The strfmon_l() function provided by <xlocale/_monetary.h> is also part of POSIX 2008's <monetary.h>, so it should be exposed by default. Change the check used in <monetary.h> to be similar to the one that's part of <wchar.h>, where we both test for __POSIX_VISIBLE and _XLOCALE_H_.
This commit is contained in:
parent
1cb290d2f2
commit
b240f5e262
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301035
|
@ -43,7 +43,7 @@ typedef __ssize_t ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
#ifdef _XLOCALE_H_
|
#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
|
||||||
#include <xlocale/_monetary.h>
|
#include <xlocale/_monetary.h>
|
||||||
#endif
|
#endif
|
||||||
ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...);
|
ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...);
|
||||||
|
|
Loading…
Reference in a new issue