From acbdb19a282aef367d0d73ccfce377d800b570ea Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 8 Mar 2017 22:12:26 +0100 Subject: [PATCH] configure.ac: Fix const correctness in check for __func__ --- expat/configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/configure.ac b/expat/configure.ac index 71a2520a..71df230d 100644 --- a/expat/configure.ac +++ b/expat/configure.ac @@ -123,10 +123,10 @@ AC_DEFUN([AC_CPP_FUNC], [AC_REQUIRE([AC_PROG_CC_STDC])dnl AC_CACHE_CHECK([for an ANSI C99-conforming __func__], ac_cv_cpp_func, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], -[[char *foo = __func__;]])], +[[const char *foo = __func__;]])], [ac_cv_cpp_func=yes], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], -[[char *foo = __FUNCTION__;]])], +[[const char *foo = __FUNCTION__;]])], [ac_cv_cpp_func=__FUNCTION__], [ac_cv_cpp_func=no])])]) if test $ac_cv_cpp_func = __FUNCTION__; then