From 968b0346dded50130f7a3fe8864178baf0f0cef8 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 31 May 2016 12:29:21 +0000 Subject: Make strfmon_l() work without requiring the use of . The strfmon_l() function provided by is also part of POSIX 2008's , so it should be exposed by default. Change the check used in to be similar to the one that's part of , where we both test for __POSIX_VISIBLE and _XLOCALE_H_. --- include/monetary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/monetary.h b/include/monetary.h index 93f82c1..bca607a 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 #endif ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...); -- cgit v1.1