Fix a static assertion incompatible with C++98 (#14229)

This commit is contained in:
Takashi Kokubun 2025-08-14 14:52:59 -07:00 committed by GitHub
parent 38558dd95e
commit 9bbd24977d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -375,7 +375,9 @@ struct RTypedData {
void *data; void *data;
}; };
#if !defined(__cplusplus) || __cplusplus >= 201103L
RBIMPL_STATIC_ASSERT(data_in_rtypeddata, offsetof(struct RData, data) == offsetof(struct RTypedData, data)); RBIMPL_STATIC_ASSERT(data_in_rtypeddata, offsetof(struct RData, data) == offsetof(struct RTypedData, data));
#endif
RBIMPL_SYMBOL_EXPORT_BEGIN() RBIMPL_SYMBOL_EXPORT_BEGIN()
RBIMPL_ATTR_NONNULL((3)) RBIMPL_ATTR_NONNULL((3))