From d69d49cc68331e2657e82c2469039cc6d72b644a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sat, 27 Jun 2026 16:14:59 -0500 Subject: [PATCH] wolfcrypt/src/aes.c: don't use explicit inline attribute on wc_local_AesGcmCheckTagSz() with C++ (namespace breakage). --- wolfcrypt/src/aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 40ee5502d2..bc9d871038 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -7995,7 +7995,7 @@ static WC_INLINE void IncCtr(byte* ctr, word32 ctrSz) #endif -#if !defined(NO_INLINE) && defined(__GNUC__) +#if !defined(NO_INLINE) && defined(__GNUC__) && !defined(__cplusplus) /* Inline for callers here in aes.c, but a callable local function for outside * callers. Don't use WC_INLINE unconditionally, because we can't count on * correct behavior beyond gcc/clang, and we don't want the the WC_MAYBE_UNUSED