aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-04 02:12:12 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-04 02:12:12 +0000
commit9cc5d26076b7b554125d87db7bf91f45d0a6b646 (patch)
treef574343b296ea439dfc7e435a5193ed146d56243 /acinclude.m4
parent57328ebfd59d01513a9af58562a1e15bda8c41f3 (diff)
Merged revisions 115283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r115283 | file | 2008-05-03 23:11:01 -0300 (Sat, 03 May 2008) | 10 lines Merged revisions 115282 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r115282 | file | 2008-05-03 23:09:44 -0300 (Sat, 03 May 2008) | 2 lines Expand the test function for GCC attributes so that more complex attributes are properly recognized. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@115284 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e5f24fc57..139524140 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -10,7 +10,7 @@ AC_MSG_CHECKING(for compiler 'attribute $1' support)
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE(
- AC_LANG_PROGRAM([static int __attribute__(($1)) test(void) {}],
+ AC_LANG_PROGRAM([static void __attribute__(($1)) *test(void *muffin, ...) {}],
[]),
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),