11b35193 |
1 | /* src/config.h.in. Generated automatically from configure.in by autoheader. */ |
2 | |
3 | /* Define if function attributes a la GCC 2.5 and higher are available. */ |
4 | #undef HAVE_GNUC25_ATTRIB |
5 | |
6 | /* Define if constant functions a la GCC 2.5 and higher are available. */ |
7 | #undef HAVE_GNUC25_CONST |
8 | |
9 | /* Define if nonreturning functions a la GCC 2.5 and higher are available. */ |
10 | #undef HAVE_GNUC25_NORETURN |
11 | |
12 | /* Define if printf-format argument lists a la GCC are available. */ |
13 | #undef HAVE_GNUC25_PRINTFFORMAT |
14 | |
15 | /* Use the definitions: */ |
16 | |
17 | /* GNU C attributes. */ |
18 | #ifndef FUNCATTR |
19 | #ifdef HAVE_GNUC25_ATTRIB |
20 | #define FUNCATTR(x) __attribute__(x) |
21 | #else |
22 | #define FUNCATTR(x) |
23 | #endif |
24 | #endif |
25 | |
26 | /* GNU C printf formats, or null. */ |
27 | #ifndef ATTRPRINTF |
28 | #ifdef HAVE_GNUC25_PRINTFFORMAT |
29 | #define ATTRPRINTF(si,tc) format(printf,si,tc) |
30 | #else |
31 | #define ATTRPRINTF(si,tc) |
32 | #endif |
33 | #endif |
34 | #ifndef PRINTFFORMAT |
35 | #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) |
36 | #endif |
37 | |
38 | /* GNU C nonreturning functions, or null. */ |
39 | #ifndef ATTRNORETURN |
40 | #ifdef HAVE_GNUC25_NORETURN |
41 | #define ATTRNORETURN noreturn |
42 | #else |
43 | #define ATTRNORETURN |
44 | #endif |
45 | #endif |
46 | #ifndef NONRETURNING |
47 | #define NONRETURNING FUNCATTR((ATTRNORETURN)) |
48 | #endif |
49 | |
50 | /* Combination of both the above. */ |
51 | #ifndef NONRETURNPRINTFFORMAT |
52 | #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) |
53 | #endif |
54 | |
55 | /* GNU C constant functions, or null. */ |
56 | #ifndef ATTRCONST |
57 | #ifdef HAVE_GNUC25_CONST |
58 | #define ATTRCONST const |
59 | #else |
60 | #define ATTRCONST |
61 | #endif |
62 | #endif |
63 | #ifndef CONSTANT |
64 | #define CONSTANT FUNCATTR((ATTRCONST)) |
65 | #endif |