]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Fix more bugs in specific tests under AC_LANG(C++).
authorZack Weinberg <zackw@panix.com>
Mon, 9 Nov 2020 18:08:13 +0000 (13:08 -0500)
committerZack Weinberg <zackw@panix.com>
Mon, 9 Nov 2020 18:10:46 +0000 (13:10 -0500)
commita8b69e68aa2c96ad8b93822e462719d59d69025a
treea6c61e265ea41ee05dd3947f0c364d08bd9e259c
parent8e5401395857f1acae558a5e926bad6609580fae
Fix more bugs in specific tests under AC_LANG(C++).

Found by exhaustive testing for differences between probe results
under AC_LANG(C) and AC_LANG(C++).

 * lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Cast result of
   malloc for C++ compatibility.
 * lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Declare yywrap
   as extern "C" when compiling as C++.
lib/autoconf/c.m4
lib/autoconf/programs.m4