~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to gl/vasnprintf.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
25
25
#include <stddef.h>
26
26
 
27
27
#ifndef __attribute__
28
 
/* This feature is available in gcc versions 2.5 and later.  */
29
 
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
30
 
#  define __attribute__(Spec) /* empty */
31
 
# endif
32
 
/* The __-protected variants of `format' and `printf' attributes
33
 
   are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
 
28
/* The __attribute__ feature is available in gcc versions 2.5 and later.
 
29
   The __-protected variants of the attributes 'format' and 'printf' are
 
30
   accepted by gcc versions 2.6.4 (effectively 2.7) and later.
 
31
   We enable __attribute__ only if these are supported too, because
 
32
   gnulib and libintl do '#define printf __printf__' when they override
 
33
   the 'printf' function.  */
34
34
# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
35
 
#  define __format__ format
36
 
#  define __printf__ printf
 
35
#  define __attribute__(Spec)   /* empty */
37
36
# endif
38
37
#endif
39
38