This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push: new 286ce3c00 PROTON-2875: C++ code can now compile with GCC 15 286ce3c00 is described below commit 286ce3c005bcdd0dd33de177497099783ce2a9f7 Author: Andrew Stitcher <astitc...@apache.org> AuthorDate: Wed Mar 5 18:16:24 2025 -0500 PROTON-2875: C++ code can now compile with GCC 15 This is a little bit of a hack in that it will use the C++20 header <version> if it is available even compiling in C++17 mode. But testing with a bunch of different C++17 compilers shows that this approach works. --- cpp/src/ssl_options.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpp/src/ssl_options.cpp b/cpp/src/ssl_options.cpp index 40f5e08f3..01e403a77 100644 --- a/cpp/src/ssl_options.cpp +++ b/cpp/src/ssl_options.cpp @@ -22,7 +22,11 @@ #include "ssl_options_impl.hpp" // https://stackoverflow.com/questions/31657499/how-to-detect-stdlib-libc-in-the-preprocessor -#include <ciso646> +#if __has_include(<version>) +# include <version> +#else +# include <ciso646> +#endif #include "proton/ssl.hpp" #include "proton/error.hpp" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org