Skip to content

Commit dcaee20

Browse files
committed
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.
1 parent f17405b commit dcaee20

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

spec/ruby/optional/capi/ext/set_spec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "ruby.h"
22
#include "rubyspec.h"
33

4+
#ifdef RUBY_VERSION_IS_3_5
45
#ifdef __cplusplus
56
extern "C" {
67
#endif
@@ -60,3 +61,4 @@ void Init_set_spec(void) {
6061
}
6162
#endif
6263

64+
#endif

0 commit comments

Comments
 (0)