mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
Fix a static assertion incompatible with C++98 (#14229)
This commit is contained in:
parent
38558dd95e
commit
9bbd24977d
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue