aboutsummaryrefslogtreecommitdiffstats
path: root/include/error.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 19:46:02 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 19:46:02 +0200
commit0e0e83b954fdff3eb67bb9a67ce0075fff96573c (patch)
tree710753467610b837a58a2d00157ea984559d4aa6 /include/error.h
parentinfo: err.h (diff)
downloadslibc-0e0e83b954fdff3eb67bb9a67ce0075fff96573c.tar.gz
slibc-0e0e83b954fdff3eb67bb9a67ce0075fff96573c.tar.bz2
slibc-0e0e83b954fdff3eb67bb9a67ce0075fff96573c.tar.xz
error.h requires _gnu_source
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--include/error.h12
1 files 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 <slibc/version.h>
#include <slibc/features.h>
-#ifndef __PORTABLE
#ifndef _SLIBC_SUPPRESS_WARNINGS
# warning "Please consider not using <error.h>."
@@ -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