summaryrefslogtreecommitdiffstats
path: root/gl/vasnprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/vasnprintf.h')
-rw-r--r--gl/vasnprintf.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/gl/vasnprintf.h b/gl/vasnprintf.h
index b9a3d6e..a689bad 100644
--- a/gl/vasnprintf.h
+++ b/gl/vasnprintf.h
@@ -1,5 +1,5 @@
1/* vsprintf with automatic memory allocation. 1/* vsprintf with automatic memory allocation.
2 Copyright (C) 2002-2004, 2007-2008 Free Software Foundation, Inc. 2 Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
@@ -25,15 +25,14 @@
25#include <stddef.h> 25#include <stddef.h>
26 26
27#ifndef __attribute__ 27#ifndef __attribute__
28/* This feature is available in gcc versions 2.5 and later. */ 28/* The __attribute__ feature is available in gcc versions 2.5 and later.
29# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) 29 The __-protected variants of the attributes 'format' and 'printf' are
30# define __attribute__(Spec) /* empty */ 30 accepted by gcc versions 2.6.4 (effectively 2.7) and later.
31# endif 31 We enable __attribute__ only if these are supported too, because
32/* The __-protected variants of `format' and `printf' attributes 32 gnulib and libintl do '#define printf __printf__' when they override
33 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ 33 the 'printf' function. */
34# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) 34# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
35# define __format__ format 35# define __attribute__(Spec) /* empty */
36# define __printf__ printf
37# endif 36# endif
38#endif 37#endif
39 38