mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
ruby: fix ruby/st.h on ruby 1.8
This commit is contained in:
parent
9f563f87b9
commit
c92384fe68
@ -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')
|
||||||
|
|
||||||
|
@ -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; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user