Move definition of __UNUSED__ to config.h.
SVN revision: 28802
This commit is contained in:
parent
4e6b6c8837
commit
ade6499592
|
@ -57,12 +57,6 @@
|
|||
#define EAllocColor(pxc) \
|
||||
XAllocColor(disp, VRoot.cmap, pxc)
|
||||
|
||||
#if HAVE___ATTRIBUTE__
|
||||
#define __UNUSED__ __attribute__((unused))
|
||||
#else
|
||||
#define __UNUSED__
|
||||
#endif
|
||||
|
||||
#define FILEPATH_LEN_MAX 4096
|
||||
|
||||
#define DEFAULT_LINKCOLOR_R 30
|
||||
|
|
|
@ -8,6 +8,9 @@ AC_DEFUN([AC_C___ATTRIBUTE__],
|
|||
ac_cv___attribute__=yes, ac_cv___attribute__=no)])
|
||||
if test "$ac_cv___attribute__" = "yes"; then
|
||||
AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
|
||||
AC_DEFINE(__UNUSED__, __attribute__((unused)), [Macro declaring a function argument to be unused])
|
||||
else
|
||||
AC_DEFINE(__UNUSED__, , [Macro declaring a function argument to be unused])
|
||||
fi
|
||||
AC_MSG_RESULT($ac_cv___attribute__)
|
||||
])
|
||||
|
|
|
@ -27,10 +27,8 @@
|
|||
#include "config.h"
|
||||
|
||||
#if HAVE___ATTRIBUTE__
|
||||
#define __UNUSED__ __attribute__((unused))
|
||||
#define __PRINTF__ __attribute__((__format__(__printf__, 1, 2)))
|
||||
#else
|
||||
#define __UNUSED__
|
||||
#define __PRINTF__
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue