diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-09-11 14:43:23 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-09-11 15:35:29 -0400 |
| commit | dcaee20c6908dfe8d4ae0b8e5c6f31e8fcb7c6c1 (patch) | |
| tree | db32dbf8a3abcf8309dc48f1bf252613dcc81a74 | |
| parent | f17405b69cb8b66feed289d9f857c38ce70bfe26 (diff) | |
Fix compilation of set_spec.c for previous Ruby versions
Set was moved to C only in Ruby 3.5, so it does not compile on Ruby 3.4
and earlier.
| -rw-r--r-- | spec/ruby/optional/capi/ext/set_spec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/ext/set_spec.c b/spec/ruby/optional/capi/ext/set_spec.c index 6535a11be3..72938be1d8 100644 --- a/spec/ruby/optional/capi/ext/set_spec.c +++ b/spec/ruby/optional/capi/ext/set_spec.c @@ -1,6 +1,7 @@ #include "ruby.h" #include "rubyspec.h" +#ifdef RUBY_VERSION_IS_3_5 #ifdef __cplusplus extern "C" { #endif @@ -60,3 +61,4 @@ void Init_set_spec(void) { } #endif +#endif |
