ruby: fix ruby/st.h on ruby 1.8

This commit is contained in:
FURUHASHI Sadayuki 2012-05-05 19:39:50 -07:00
parent 9f563f87b9
commit c92384fe68
2 changed files with 2 additions and 0 deletions

View File

@ -2,5 +2,6 @@ require 'mkmf'
require './version.rb' require './version.rb'
$CFLAGS << %[ -I.. -Wall -O3 -DMESSAGEPACK_VERSION=\\"#{MessagePack::VERSION}\\" -g] $CFLAGS << %[ -I.. -Wall -O3 -DMESSAGEPACK_VERSION=\\"#{MessagePack::VERSION}\\" -g]
have_header("ruby/st.h") have_header("ruby/st.h")
have_header("st.h")
create_makefile('msgpack') create_makefile('msgpack')

View File

@ -44,6 +44,7 @@ static ID s_append;
#include "ruby/st.h" // ruby hash on Ruby 1.9 #include "ruby/st.h" // ruby hash on Ruby 1.9
#elif defined(HAVE_ST_H) #elif defined(HAVE_ST_H)
#include "st.h" // ruby hash on Ruby 1.8 #include "st.h" // ruby hash on Ruby 1.8
#endif
#define ARG_BUFFER(name, argc, argv) \ #define ARG_BUFFER(name, argc, argv) \
VALUE name; \ VALUE name; \