From d15775ce40a2bf2c99b762a2a893b71de516ea98 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 19:03:57 +0200 Subject: m + info: error reporting facilities from errno.h, string.h and stdio.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index 047542b..dc1cca0 100644 --- a/include/string.h +++ b/include/string.h @@ -41,6 +41,7 @@ +#if defined(__C89__) || (_POSIX_C_SOURCE >= 200112L) /** * Return a textual representation of an error code. * This error code must from `errno`. @@ -61,7 +62,9 @@ */ char* strerror(int) __GCC_ONLY(__attribute__((returns_nonnull, warn_unused_result))); +#endif +#if _POSIX_C_SOURCE >= 200809L /** * Return a textual representation of an error code. * This error code must from `errno`. @@ -80,6 +83,7 @@ char* strerror(int) */ char* strerror_l(int, locale_t) __GCC_ONLY(__attribute__((warn_unused_result))); /* TODO attributes */ +#endif #if !defined(__PORTABLE) -- cgit v1.2.3-70-g09d2