mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-09-21 07:36:38 +02: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
|
||||
|
||||
__BEGIN_DECLS
|
||||
#ifdef _XLOCALE_H_
|
||||
#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
|
||||
#include <xlocale/_monetary.h>
|
||||
#endif
|
||||
ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user