svn commit: trunk/uClibc/include

vapier at uclibc.org vapier at uclibc.org
Fri Apr 7 23:15:28 UTC 2006


Author: vapier
Date: 2006-04-07 16:15:27 -0700 (Fri, 07 Apr 2006)
New Revision: 14779

Log:
remove old cruft that doesnt matter for uClibc and breaks anyways when using -std=c99

Modified:
   trunk/uClibc/include/error.h


Changeset:
Modified: trunk/uClibc/include/error.h
===================================================================
--- trunk/uClibc/include/error.h	2006-04-07 22:42:15 UTC (rev 14778)
+++ trunk/uClibc/include/error.h	2006-04-07 23:15:27 UTC (rev 14779)
@@ -20,25 +20,10 @@
 #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
+__BEGIN_DECLS
 
-#if defined __STDC__ && __STDC__
-
 /* Print a message with `fprintf (stderr, FORMAT, ...)';
    if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
    If STATUS is nonzero, terminate the program with `exit (STATUS)'.  */
@@ -55,12 +40,6 @@
    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 @@
    variable controls whether this mode is selected or not.  */
 extern int error_one_per_line;
 
-#ifdef	__cplusplus
-}
-#endif
+__END_DECLS
 
 #endif /* error.h */




More information about the uClibc-cvs mailing list