Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Alias Ruby C API methods for 1.8/1.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
bklang committed Aug 25, 2011
1 parent 575495a commit b6c0c6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ext/em.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ See the file COPYING for complete licensing information.
#ifndef RUBY_UBF_IO
#define RUBY_UBF_IO RB_UBF_DFL
#endif
#ifndef RSTRING_PTR
#define RSTRING_PTR(str) RString(str)->ptr
#endif
#ifndef RSTRING_LEN
#define RSTRING_LEN(str) RString(str)->len
#endif
#ifndef RSTRING_LENINT
#define RSTRING_LENINT(str) RSTRING_LEN(str)
#endif
#else
#define EmSelect select
#endif
Expand Down

0 comments on commit b6c0c6e

Please sign in to comment.