File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8181# define RUBY19_OR_LATER 1
8282#endif
8383
84+ #if (defined(RUBY_VERSION ) && RUBY_VERSION >= 20 ) \
85+ || (defined(DYNAMIC_RUBY_VER ) && DYNAMIC_RUBY_VER >= 20 )
86+ # define RUBY20_OR_LATER 1
87+ #endif
88+
8489#if defined(DYNAMIC_RUBY_VER ) && DYNAMIC_RUBY_VER >= 19
8590/* Ruby 1.9 defines a number of static functions which use rb_num2long and
8691 * rb_int2big */
122127#endif
123128
124129/*
125- * The TypedData_XXX macro family can be used since Ruby 1.9.2, and
126- * the old Data_XXX macro family was deprecated on Ruby 2.2.
130+ * The TypedData_XXX macro family can be used since Ruby 1.9.2 but
131+ * rb_data_type_t changed in 1.9.3, therefore require at least 2.0.
132+ * The old Data_XXX macro family was deprecated on Ruby 2.2.
127133 * Use TypedData_XXX if available.
128134 */
129- #ifdef TypedData_Wrap_Struct
135+ #if defined( TypedData_Wrap_Struct ) && defined( RUBY20_OR_LATER )
130136# define USE_TYPEDDATA 1
131137#endif
132138
Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static char *(features[]) =
741741
742742static int included_patches [] =
743743{ /* Add new patch number below this line */
744+ /**/
745+ 987 ,
744746/**/
745747 986 ,
746748/**/
You can’t perform that action at this time.
0 commit comments