No subject


Tue Mar 17 14:04:44 CDT 2009


AC_DEFUN([AX_C___ATTRIBUTE__], [
  AC_CACHE_CHECK([for __attribute__], [ax_cv___attribute__],
    [AC_COMPILE_IFELSE(
      [AC_LANG_PROGRAM(
        [[#include <stdlib.h>
          static void foo(void) __attribute__ ((unused));
          static void
          foo(void) {
              exit(1);
          }
        ]], [])],
      [ax_cv___attribute__=yes],
      [ax_cv___attribute__=no]
    )
  ])
  if test "$ax_cv___attribute__" = "yes"; then
    AC_DEFINE([HAVE___ATTRIBUTE__], 1, [define if your compiler has
__attribute__])
  fi
])

then:

#ifdef HAVE___ATTRIBUTE__
#define __WINE_ATTR_UNUSED __attribute__((unused))
#else
#define __WINE_ATTR_UNUSED
#endif


- Reece



More information about the wine-devel mailing list