[nasm:nasm-2.15.xx] pa_c_typedef.m4: also test for __typeof and __decltype
nasm-bot for H. Peter Anvin (Intel)
hpa at zytor.com
Thu Jul 9 19:33:04 PDT 2020
Commit-ID: 1b9c8ec434a54b38952070c0a161a2164a9c67a3
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=1b9c8ec434a54b38952070c0a161a2164a9c67a3
Author: H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Thu, 9 Jul 2020 19:28:12 -0700
Committer: H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Thu, 9 Jul 2020 19:28:12 -0700
pa_c_typedef.m4: also test for __typeof and __decltype
Some vendors prefer to put underscores just at the beginning.
Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>
---
autoconf/m4/pa_c_typeof.m4 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/autoconf/m4/pa_c_typeof.m4 b/autoconf/m4/pa_c_typeof.m4
index 036d02f2..d182ea2c 100644
--- a/autoconf/m4/pa_c_typeof.m4
+++ b/autoconf/m4/pa_c_typeof.m4
@@ -7,7 +7,8 @@ dnl --------------------------------------------------------------------------
AC_DEFUN([PA_C_TYPEOF],
[AC_CACHE_CHECK([if $CC supports typeof], [pa_cv_typeof],
[pa_cv_typeof=no
- for pa_typeof_try in typeof __typeof__ decltype __decltype__; do
+ for pa_typeof_try in typeof __typeof __typeof__ decltype __decltype __decltype__
+ do
AS_IF([test $pa_cv_typeof = no],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
AC_INCLUDES_DEFAULT
More information about the Nasm-commits
mailing list