1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

stdckdint-h: Work around missing declarations with g++ 15.0.

* modules/stdckdint-h (configure.ac): Generate the header if the system
has one and C++ is being used.
This commit is contained in:
Collin Funk
2025-05-19 21:29:03 -07:00
parent 5948807b3e
commit 7ee6e40b67
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
2025-05-19 Collin Funk <collin.funk1@gmail.com>
stdckdint-h: Work around missing declarations with g++ 15.0.
* modules/stdckdint-h (configure.ac): Generate the header if the system
has one and C++ is being used.
stdckdint-h C++ tests: Verify the ckd_* functions can be invoked.
* tests/test-stdckdint-h-c++.cc (main): Invoke ckd_add, ckd_sub, and
ckd_mul.

View File

@@ -12,7 +12,11 @@ bool
configure.ac:
AC_CHECK_HEADERS_ONCE([stdckdint.h])
if test $ac_cv_header_stdckdint_h = yes; then
if test -n "$CXX" && test "$CXX" != no; then
GL_GENERATE_STDCKDINT_H=true
else
GL_GENERATE_STDCKDINT_H=false
fi
else
GL_GENERATE_STDCKDINT_H=true
fi