X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fxprintf.h;h=d313d64fadbfd47f9f2c96355136bda2c92e4555;hb=548521fdc6765481e09537489cb9eec5f6ac1cd5;hp=d11e270e986806de269ccf5753233945d360b5e3;hpb=15834b98efed40c82ee182c367b636e1769cb62a;p=gnulib.git diff --git a/lib/xprintf.h b/lib/xprintf.h index d11e270e9..d313d64fa 100644 --- a/lib/xprintf.h +++ b/lib/xprintf.h @@ -1,5 +1,5 @@ /* printf wrappers that fail immediately for non-file-related errors - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) -# define __attribute__(Spec) /* empty */ +# 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. */ @@ -40,7 +40,7 @@ extern int xvprintf (char const *restrict format, va_list args) extern int xfprintf (FILE *restrict stream, char const *restrict format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern int xvfprintf (FILE *restrict stream, char const *restrict format, - va_list args) + va_list args) __attribute__ ((__format__ (__printf__, 2, 0))); #endif