]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
stdckdint-h: Work around missing declarations with g++ 15.0.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 20 May 2025 04:29:03 +0000 (21:29 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 20 May 2025 04:29:03 +0000 (21:29 -0700)
* modules/stdckdint-h (configure.ac): Generate the header if the system
has one and C++ is being used.

ChangeLog
modules/stdckdint-h

index 2351f847ef50bdbef2d6aa519770188d7c66fe29..b85c7c6e6e1632a177d6fbb6278abaca51b247e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 24e26cfb692dc7e5b8ff8cf59ee1f5c199898b77..ff777d8d62b8d91f534cb6ef2dd106cb7e9b1889 100644 (file)
@@ -12,7 +12,11 @@ bool
 configure.ac:
 AC_CHECK_HEADERS_ONCE([stdckdint.h])
 if test $ac_cv_header_stdckdint_h = yes; then
-  GL_GENERATE_STDCKDINT_H=false
+  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