]> granicus.if.org Git - sudo/commitdiff
__attribute__ is already defined in compat.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Nov 2004 17:32:25 +0000 (17:32 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Nov 2004 17:32:25 +0000 (17:32 +0000)
error.h

diff --git a/error.h b/error.h
index b42417941b7875401f9e19a9e11299dfdc9959d0..87562beacdf30e7d058a427906a711bc89c51119 100644 (file)
--- a/error.h
+++ b/error.h
 
 #ifdef __STDC__
 # include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
-
-#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 5
-#define __attribute__(x)
-#endif
-
-#ifdef __STDC__
 void   error(int, const char *, ...) __attribute__((__noreturn__));
 void   errorx(int, const char *, ...) __attribute__((__noreturn__));
 void   warning(const char *, ...);
 void   warningx(const char *, ...);
 #else
+# include <varargs.h>
 void   error() __attribute__((__noreturn__));
 void   errorx() __attribute__((__noreturn__));
 void   warning();