Fix acinclude.m4 for clang.
Also all other compilers which don't support nested functions in C. Taken from: https://svnweb.freebsd.org/ports?view=revision&revision=531220
This commit is contained in:
parent
578e48d922
commit
beb2470941
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,6 @@ AC_DEFUN([LSH_GCC_ATTRIBUTES],
|
||||||
lsh_cv_c_attribute,
|
lsh_cv_c_attribute,
|
||||||
[ AC_TRY_COMPILE([
|
[ AC_TRY_COMPILE([
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
],
|
|
||||||
[
|
|
||||||
static void foo(void) __attribute__ ((noreturn));
|
static void foo(void) __attribute__ ((noreturn));
|
||||||
|
|
||||||
static void __attribute__ ((noreturn))
|
static void __attribute__ ((noreturn))
|
||||||
|
@ -294,6 +292,8 @@ foo(void)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
],
|
||||||
lsh_cv_c_attribute=yes,
|
lsh_cv_c_attribute=yes,
|
||||||
lsh_cv_c_attribute=no)])
|
lsh_cv_c_attribute=no)])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue