mirror of
				https://github.com/msgpack/msgpack-c.git
				synced 2025-10-25 18:23:00 +02:00 
			
		
		
		
	Detect whether st.h is present and don't use RUBY_VM as the condition
This commit is contained in:
		| @@ -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) \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dirkjan Bussink
					Dirkjan Bussink