mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
ruby: fixes compatibility with ruby-1.8.5
This commit is contained in:
parent
b5c78de2dd
commit
09b47cc536
5 changed files with 48 additions and 23 deletions
|
|
@ -17,11 +17,11 @@
|
|||
*/
|
||||
#include "pack.h"
|
||||
#include "unpack.h"
|
||||
#include "encoding.h"
|
||||
#include "compat.h"
|
||||
|
||||
static VALUE mMessagePack;
|
||||
|
||||
#ifdef MSGPACK_RUBY_ENCODING
|
||||
#ifdef COMPAT_HAVE_ENCODING
|
||||
int s_enc_utf8;
|
||||
int s_enc_ascii8bit;
|
||||
int s_enc_usascii;
|
||||
|
|
@ -54,7 +54,7 @@ void Init_msgpack(void)
|
|||
|
||||
rb_define_const(mMessagePack, "VERSION", rb_str_new2(MESSAGEPACK_VERSION));
|
||||
|
||||
#ifdef MSGPACK_RUBY_ENCODING
|
||||
#ifdef COMPAT_HAVE_ENCODING
|
||||
s_enc_ascii8bit = rb_ascii8bit_encindex();
|
||||
s_enc_utf8 = rb_utf8_encindex();
|
||||
s_enc_usascii = rb_usascii_encindex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue