aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 19:03:57 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 19:03:57 +0200
commitd15775ce40a2bf2c99b762a2a893b71de516ea98 (patch)
tree5ad12f6e2a3994c78cabd19fe6474ef6270576d5 /include
parenttypo (diff)
downloadslibc-d15775ce40a2bf2c99b762a2a893b71de516ea98.tar.gz
slibc-d15775ce40a2bf2c99b762a2a893b71de516ea98.tar.bz2
slibc-d15775ce40a2bf2c99b762a2a893b71de516ea98.tar.xz
m + info: error reporting facilities from errno.h, string.h and stdio.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r--include/string.h4
1 files changed, 4 insertions, 0 deletions
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)