diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 19:05:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 19:05:41 +0200 |
commit | daf6c9d5d61ddb8c36288c60445571c61a76d853 (patch) | |
tree | 5ea662d69d3be2872640f72290e46a6865394ed1 | |
parent | m + info: error reporting facilities from errno.h, string.h and stdio.h (diff) | |
download | slibc-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>
-rw-r--r-- | include/err.h | 4 |
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 |