Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions rbldap.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,14 @@ VALUE rb_ldap_mod_vals (VALUE);
rb_define_method(rb_cLDAP_Mod,method,cfunc,argc)

#endif

#if RUBY_VERSION_CODE >= 270
# if defined rb_tainted_str_new
# undef rb_tainted_str_new
# endif
# if defined rb_tainted_str_new2
# undef rb_tainted_str_new2
# endif
# define rb_tainted_str_new(p,l) rb_str_new((p),(l))
# define rb_tainted_str_new2(p) rb_str_new_cstr((p))
#endif