X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=acconfig.h;fp=acconfig.h;h=160a27c9240e4f3cbc8dacf01f1a85cfb7168f6f;hp=998b8e39c796d32067df71cdc718d2e9da02a5bf;hb=db59ee1476515a65cfcca10a3059d8ccb2d24d32;hpb=9f9813ee612b45b0bb64345b482899fa3a39b5a5 diff --git a/acconfig.h b/acconfig.h index 998b8e3..160a27c 100644 --- a/acconfig.h +++ b/acconfig.h @@ -22,8 +22,8 @@ /* Define if function attributes a la GCC 2.5 and higher are available. */ #undef HAVE_GNUC25_ATTRIB -/* Define if constant functions a la GCC 2.5 and higher are available. */ -#undef HAVE_GNUC25_CONST +/* Define if unused functions a la GCC 2.5 and higher are available. */ +#undef HAVE_GNUC25_UNUSED /* Define if nonreturning functions a la GCC 2.5 and higher are available. */ #undef HAVE_GNUC25_NORETURN @@ -71,14 +71,14 @@ #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) #endif -/* GNU C constant functions, or null. */ -#ifndef ATTRCONST -#ifdef HAVE_GNUC25_CONST -#define ATTRCONST const +/* GNU C unused functions, or null. */ +#ifndef ATTRUNUSED +#ifdef HAVE_GNUC25_UNUSED +#define ATTRUNUSED unused #else -#define ATTRCONST +#define ATTRUNUSED #endif #endif -#ifndef CONSTANT -#define CONSTANT FUNCATTR((ATTRCONST)) +#ifndef UNUSED +#define UNUSED FUNCATTR((ATTRUNUSED)) #endif