1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

reallocarray: Fix compilation error in C++ mode on Android.

* m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Use gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS.
This commit is contained in:
Bruno Haible
2023-01-09 17:29:03 +01:00
parent 24b3161dc8
commit 41a04c574d
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
2023-01-09 Bruno Haible <bruno@clisp.org>
reallocarray: Fix compilation error in C++ mode on Android.
* m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Use gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS.
2023-01-09 Bruno Haible <bruno@clisp.org>
getsubopt: Fix compilation error in C++ mode on Android.
+2 -2
View File
@@ -1,4 +1,4 @@
# reallocarray.m4 serial 3
# reallocarray.m4 serial 4
dnl Copyright (C) 2017-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,7 @@ AC_DEFUN([gl_FUNC_REALLOCARRAY],
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF])
AC_CHECK_FUNCS([reallocarray])
gl_CHECK_FUNCS_ANDROID([reallocarray], [[#include <stdlib.h>]])
if test "$ac_cv_func_reallocarray" = no; then
HAVE_REALLOCARRAY=0
elif test "$gl_cv_malloc_ptrdiff" = no; then