[nasm:nasm-2.15.xx] autoconf: look for _Decltype as yet another alias for typeof().
nasm-bot for H. Peter Anvin
hpa at zytor.com
Thu Jul 16 20:30:08 PDT 2020
Commit-ID: 36814f1fc83c4876ebb6a1cfec5ee000316a1127
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=36814f1fc83c4876ebb6a1cfec5ee000316a1127
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 16 Jul 2020 20:26:58 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 16 Jul 2020 20:28:35 -0700
autoconf: look for _Decltype as yet another alias for typeof().
If the past is any indication, the final standardization of typeof()
probably will be _Decltype().
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
autoconf/m4/pa_c_typeof.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/autoconf/m4/pa_c_typeof.m4 b/autoconf/m4/pa_c_typeof.m4
index d182ea2c..87b9ed60 100644
--- a/autoconf/m4/pa_c_typeof.m4
+++ b/autoconf/m4/pa_c_typeof.m4
@@ -7,7 +7,7 @@ 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 __typeof__ decltype __decltype __decltype__
+ for pa_typeof_try in typeof __typeof __typeof__ decltype __decltype __decltype__ _Decltype
do
AS_IF([test $pa_cv_typeof = no],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
@@ -29,4 +29,4 @@ int testme(int x)
AS_IF([test $pa_cv_typeof = typeof],
[],
[AC_DEFINE_UNQUOTED([typeof], [$pa_cv_typeof],
- [Define if your typeof operator is not named typeof.])])])])
+ [Define if your typeof operator is not named `typeof'.])])])])
More information about the Nasm-commits
mailing list