Mercurial > hg > octave-nkf > gnulib-hg
comparison lib/argp.h @ 9613:c4fa39bf5223
Don't redefine __attribute__ without a need.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 13 Jan 2008 16:51:48 +0100 |
parents | 06538f749e42 |
children | e8d2c6fc33ad |
comparison
equal
deleted
inserted
replaced
9612:cc0a699b05c0 | 9613:c4fa39bf5223 |
---|---|
1 /* Hierarchial argument parsing, layered over getopt. | 1 /* Hierarchial argument parsing, layered over getopt. |
2 Copyright (C) 1995-1999,2003-2007 Free Software Foundation, Inc. | 2 Copyright (C) 1995-1999,2003-2008 Free Software Foundation, Inc. |
3 This file is part of the GNU C Library. | 3 This file is part of the GNU C Library. |
4 Written by Miles Bader <miles@gnu.ai.mit.edu>. | 4 Written by Miles Bader <miles@gnu.ai.mit.edu>. |
5 | 5 |
6 This program is free software: you can redistribute it and/or modify | 6 This program is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
34 # define __NTH(fct) fct __THROW | 34 # define __NTH(fct) fct __THROW |
35 #endif | 35 #endif |
36 | 36 |
37 #ifndef __attribute__ | 37 #ifndef __attribute__ |
38 /* This feature is available in gcc versions 2.5 and later. */ | 38 /* This feature is available in gcc versions 2.5 and later. */ |
39 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ | 39 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) |
40 # define __attribute__(Spec) /* empty */ | 40 # define __attribute__(Spec) /* empty */ |
41 # endif | 41 # endif |
42 /* The __-protected variants of `format' and `printf' attributes | 42 /* The __-protected variants of `format' and `printf' attributes |
43 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ | 43 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ |
44 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__ | 44 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__ |