diff options
| author | Takashi Kokubun <takashi.kokubun@shopify.com> | 2025-08-14 14:52:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 14:52:59 -0700 |
| commit | 9bbd24977d95a405cd395ad2603d8d4f871f1b4f (patch) | |
| tree | d8835420d978a9f2898ced34d4082a967356b41e | |
| parent | 38558dd95e6443a8412304718ad77a331c185f5d (diff) | |
Fix a static assertion incompatible with C++98 (#14229)
| -rw-r--r-- | include/ruby/internal/core/rtypeddata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/core/rtypeddata.h b/include/ruby/internal/core/rtypeddata.h index 9441b2f5c2..4d9fd4a6ac 100644 --- a/include/ruby/internal/core/rtypeddata.h +++ b/include/ruby/internal/core/rtypeddata.h @@ -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)) |
