mirror of
				https://github.com/msgpack/msgpack-c.git
				synced 2025-10-25 18:23:00 +02:00 
			
		
		
		
	ruby: fix ruby/st.h on ruby 1.8
This commit is contained in:
		| @@ -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; \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 FURUHASHI Sadayuki
					FURUHASHI Sadayuki