mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-18 20:38:00 +01:00
Detect whether st.h is present and don't use RUBY_VM as the condition
This commit is contained in:
parent
4a0d7f18fd
commit
bf18e04134
@ -1,5 +1,6 @@
|
||||
require 'mkmf'
|
||||
require './version.rb'
|
||||
$CFLAGS << %[ -I.. -Wall -O3 -DMESSAGEPACK_VERSION=\\"#{MessagePack::VERSION}\\" -g]
|
||||
have_header("ruby/st.h")
|
||||
create_makefile('msgpack')
|
||||
|
||||
|
@ -40,8 +40,8 @@ static ID s_append;
|
||||
#include "msgpack/pack_template.h"
|
||||
|
||||
|
||||
#ifndef RUBY_VM
|
||||
#include "st.h" // ruby hash
|
||||
#ifdef HAVE_RUBY_ST_H
|
||||
#include "ruby/st.h" // ruby hash
|
||||
#endif
|
||||
|
||||
#define ARG_BUFFER(name, argc, argv) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user