summaryrefslogtreecommitdiffstats
path: root/gl/vasnprintf.h
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-08 01:11:46 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-13 01:26:35 (GMT)
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/vasnprintf.h
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
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