From 7404e63b53db8ec72f62040fcc6a0a322fd12e51 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 31 Mar 2024 22:22:41 +0200 Subject: [PATCH] Fix C++ / G++ introduced issue --- m-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index 1e0f2825..f0a5e37c 100644 --- a/m-core.h +++ b/m-core.h @@ -3821,7 +3821,7 @@ M_INLINE size_t m_core_cstr_hash(const char str[]) /* Check if both variables are of the same type. The test compare their size. NOTE: Not perfect but catch some errors */ -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__cplusplus) #define M_CHECK_SAME(a, b) \ M_STATIC_ASSERT(__builtin_types_compatible_p(__typeof__(a), __typeof__(b)), \ M_LIB_NOT_SAME_TYPE, \