summaryrefslogtreecommitdiff
path: root/include/monetary.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-05-31 12:29:21 +0000
committerEd Schouten <ed@FreeBSD.org>2016-05-31 12:29:21 +0000
commitb240f5e262a10fd8072e8dfe989703b973a354d0 (patch)
treec9c303cc55256bd44dd7e8b82281b19cf3a6e891 /include/monetary.h
parent1cb290d2f2458109fa492d300e21f102a41b6874 (diff)
downloadsrc-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.h2
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, ...);