Fix a static assertion incompatible with C++98

This commit is contained in:
Takashi Kokubun 2025-08-14 14:25:29 -07:00
parent 38558dd95e
commit f2a21e91a0

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))