diff options
author | Ed Schouten <ed@FreeBSD.org> | 2016-05-31 12:29:21 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2016-05-31 12:29:21 +0000 |
commit | b240f5e262a10fd8072e8dfe989703b973a354d0 (patch) | |
tree | c9c303cc55256bd44dd7e8b82281b19cf3a6e891 /include/monetary.h | |
parent | 1cb290d2f2458109fa492d300e21f102a41b6874 (diff) | |
download | src-test2-b240f5e262a10fd8072e8dfe989703b973a354d0.tar.gz src-test2-b240f5e262a10fd8072e8dfe989703b973a354d0.zip |
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_.
Notes
Notes:
svn path=/head/; revision=301035
Diffstat (limited to 'include/monetary.h')
-rw-r--r-- | include/monetary.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/monetary.h b/include/monetary.h index 93f82c1cbdeb..bca607a0478f 100644 --- a/include/monetary.h +++ b/include/monetary.h @@ -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, ...); |