From 0e0e83b954fdff3eb67bb9a67ce0075fff96573c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 19:46:02 +0200 Subject: error.h requires _gnu_source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/error.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/error.h b/include/error.h index 7cf551f..9bd01ea 100644 --- a/include/error.h +++ b/include/error.h @@ -19,7 +19,6 @@ #define _ERROR_H #include #include -#ifndef __PORTABLE #ifndef _SLIBC_SUPPRESS_WARNINGS # warning "Please consider not using ." @@ -31,6 +30,7 @@ +#if defined(__GNU_SOURCE) /** * Print an error message with a detailed description, and optionally exit. * @@ -60,9 +60,9 @@ void error(int, int, const char*, ...) * @param format Formatting-string for a detailed description of what happend. * @param args Formatting-arguments for `format`. */ -#if defined(__SLIBC_SOURCE) +# if defined(__SLIBC_SOURCE) void verror(int, int, const char*, va_list); -#endif +# endif /** @@ -100,9 +100,9 @@ void error_at_line(int, int, const char*, unsigned int, const char*, ...) * @param format Formatting-string for a detailed description of what happend. * @param args Formatting-arguments for `format`. */ -#if defined(__SLIBC_SOURCE) +# if defined(__SLIBC_SOURCE) void verror_at_line(int, int, const char*, unsigned int, const char*, va_list); -#endif +# endif /** @@ -142,9 +142,9 @@ extern volatile int error_one_per_line; * This is a GNU extension. */ extern void (*volatile error_print_progname)(void); +#endif -#endif #endif -- cgit v1.2.3-70-g09d2