3 * input file for autoheader/autoconf/configure: extra stuff for config.h
6 * This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 /* Define if function attributes a la GCC 2.5 and higher are available. */
24 #undef HAVE_GNUC25_ATTRIB
26 /* Define if constant functions a la GCC 2.5 and higher are available. */
27 #undef HAVE_GNUC25_CONST
29 /* Define if nonreturning functions a la GCC 2.5 and higher are available. */
30 #undef HAVE_GNUC25_NORETURN
32 /* Define if printf-format argument lists a la GCC are available. */
33 #undef HAVE_GNUC25_PRINTFFORMAT
37 /* Use the definitions: */
43 struct pollfd { int fd; short events; short revents; };
49 /* GNU C attributes. */
51 #ifdef HAVE_GNUC25_ATTRIB
52 #define FUNCATTR(x) __attribute__(x)
58 /* GNU C printf formats, or null. */
60 #ifdef HAVE_GNUC25_PRINTFFORMAT
61 #define ATTRPRINTF(si,tc) format(printf,si,tc)
63 #define ATTRPRINTF(si,tc)
67 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
70 /* GNU C nonreturning functions, or null. */
72 #ifdef HAVE_GNUC25_NORETURN
73 #define ATTRNORETURN noreturn
79 #define NONRETURNING FUNCATTR((ATTRNORETURN))
82 /* Combination of both the above. */
83 #ifndef NONRETURNPRINTFFORMAT
84 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
87 /* GNU C constant functions, or null. */
89 #ifdef HAVE_GNUC25_CONST
90 #define ATTRCONST const
96 #define CONSTANT FUNCATTR((ATTRCONST))