Skip to content

Commit

Permalink
Fix C++ / G++ introduced issue
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Mar 31, 2024
1 parent c539eb5 commit 7404e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down

0 comments on commit 7404e63

Please sign in to comment.