aboutsummaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 19:05:41 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 19:05:41 +0200
commitdaf6c9d5d61ddb8c36288c60445571c61a76d853 (patch)
tree5ea662d69d3be2872640f72290e46a6865394ed1 /include/err.h
parentm + info: error reporting facilities from errno.h, string.h and stdio.h (diff)
downloadslibc-daf6c9d5d61ddb8c36288c60445571c61a76d853.tar.gz
slibc-daf6c9d5d61ddb8c36288c60445571c61a76d853.tar.bz2
slibc-daf6c9d5d61ddb8c36288c60445571c61a76d853.tar.xz
m feature-test macro checking
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/err.h b/include/err.h
index ca28491..ae538ff 100644
--- a/include/err.h
+++ b/include/err.h
@@ -19,7 +19,6 @@
#define _ERR_H
#include <slibc/version.h>
#include <slibc/features.h>
-#ifndef __PORTABLE
#ifndef _SLIBC_SUPPRESS_WARNINGS
# warning "Please consider not using <err.h>."
@@ -31,6 +30,7 @@
+#if defined(__BSD_SOURCE)
/**
* Print a warning to stderr, followed by a description
* of the value of `errno`.
@@ -126,9 +126,9 @@ __noreturn void errx(int, const char*, ...)
* @param args Formatting-arguments.
*/
__noreturn void verrx(int, const char*, va_list);
+#endif
#endif
-#endif