From: Bruno Haible Date: Sun, 20 Mar 2011 21:34:13 +0000 (+0100) Subject: verror: Fix compilation error introduced on 2011-02-13. X-Git-Tag: v0.1~3082 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=f93da2171bca5165cd0698e089ce08409388f33c;p=gnulib.git verror: Fix compilation error introduced on 2011-02-13. * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro instead of __attribute__. Reported by Tom G. Christensen . --- diff --git a/ChangeLog b/ChangeLog index f786af35b..4dda75316 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-03-20 Bruno Haible + + verror: Fix compilation error introduced on 2011-02-13. + * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro + instead of __attribute__. + Reported by Tom G. Christensen . + 2011-03-20 Paul Eggert Bruno Haible diff --git a/lib/verror.h b/lib/verror.h index 8cb511cb4..ec4ff1d4a 100644 --- a/lib/verror.h +++ b/lib/verror.h @@ -17,9 +17,10 @@ #ifndef _VERROR_H #define _VERROR_H 1 -#include "error.h" #include +#include "error.h" /* for _GL_ATTRIBUTE_FORMAT */ + #ifdef __cplusplus extern "C" { #endif @@ -32,7 +33,7 @@ extern "C" { extern void verror (int __status, int __errnum, const char *__format, va_list __args) - __attribute__ ((__format__ (__printf__, 3, 0))); + _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0)); /* Print a message with `vfprintf (stderr, FORMAT, ARGS)'; if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). @@ -44,7 +45,7 @@ extern void verror (int __status, int __errnum, const char *__format, extern void verror_at_line (int __status, int __errnum, const char *__fname, unsigned int __lineno, const char *__format, va_list __args) - __attribute__ ((__format__ (__printf__, 5, 0))); + _GL_ATTRIBUTE_FORMAT ((__printf__, 5, 0)); #ifdef __cplusplus }