projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash table fix
[tinc]
/
m4
/
attribute.m4
diff --git
a/m4/attribute.m4
b/m4/attribute.m4
index
58b8346
..
3228deb
100644
(file)
--- a/
m4/attribute.m4
+++ b/
m4/attribute.m4
@@
-1,7
+1,7
@@
dnl Check to find out whether function attributes are supported.
dnl If they are not, #define them to be nothing.
dnl Check to find out whether function attributes are supported.
dnl If they are not, #define them to be nothing.
-AC_DEFUN(
tinc_ATTRIBUTE
,
+AC_DEFUN(
[tinc_ATTRIBUTE]
,
[
AC_CACHE_CHECK([for working $1 attribute], tinc_cv_attribute_$1,
[
[
AC_CACHE_CHECK([for working $1 attribute], tinc_cv_attribute_$1,
[
@@
-9,8
+9,8
@@
AC_DEFUN(tinc_ATTRIBUTE,
CFLAGS="$CFLAGS -Wall -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE(
CFLAGS="$CFLAGS -Wall -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE(
- [void
test(void
) __attribute__ (($1));
- void
test(void) { return
; }
+ [void
*test(void *x
) __attribute__ (($1));
+ void
*test(void *x) { return (void *)x
; }
],
)],
[tinc_cv_attribute_$1=yes],
],
)],
[tinc_cv_attribute_$1=yes],