diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-04-07 23:15:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-04-07 23:15:27 +0000 |
commit | 460c5d409eccf3669e666e7ff0711fb195a61fe4 (patch) | |
tree | 340e883000594526ec9923a79cbbea19839d3bb0 | |
parent | 93de5c42bbfdcec09040fbaa63993577bb8d99ec (diff) |
remove old cruft that doesnt matter for uClibc and breaks anyways when using -std=c99
-rw-r--r-- | include/error.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/include/error.h b/include/error.h index 3638bc6e9..b553caeb9 100644 --- a/include/error.h +++ b/include/error.h @@ -20,24 +20,9 @@ #ifndef _ERROR_H #define _ERROR_H 1 -#ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf -# endif -#endif +#include <features.h> -#ifdef __cplusplus -extern "C" { -#endif - -#if defined __STDC__ && __STDC__ +__BEGIN_DECLS /* Print a message with `fprintf (stderr, FORMAT, ...)'; if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). @@ -55,12 +40,6 @@ extern void error_at_line (int __status, int __errnum, const char *__fname, function without parameters instead. */ extern void (*error_print_progname) (void); -#else -void error (); -void error_at_line (); -extern void (*error_print_progname) (); -#endif - /* This variable is incremented each time `error' is called. */ extern unsigned int error_message_count; @@ -68,8 +47,6 @@ extern unsigned int error_message_count; variable controls whether this mode is selected or not. */ extern int error_one_per_line; -#ifdef __cplusplus -} -#endif +__END_DECLS #endif /* error.h */ |