mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix a static assertion incompatible with C++98
This commit is contained in:
parent
38558dd95e
commit
f2a21e91a0
1 changed files with 2 additions and 0 deletions
|
@ -375,7 +375,9 @@ struct RTypedData {
|
|||
void *data;
|
||||
};
|
||||
|
||||
#if !defined(__cplusplus) || __cplusplus >= 201103L
|
||||
RBIMPL_STATIC_ASSERT(data_in_rtypeddata, offsetof(struct RData, data) == offsetof(struct RTypedData, data));
|
||||
#endif
|
||||
|
||||
RBIMPL_SYMBOL_EXPORT_BEGIN()
|
||||
RBIMPL_ATTR_NONNULL((3))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue