1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

compile level compatibility with 1.8.* by including rb_proc_new() function prototype.

This commit is contained in:
Charles Lowell 2011-04-19 10:42:57 -05:00
parent 72d181ecdc
commit 03777e31db

View file

@ -3,6 +3,7 @@
#include <v8.h>
#include "ruby.h"
#include "ruby/version.h"
struct v8_weakref {
v8_weakref(VALUE object);
@ -21,4 +22,9 @@ VALUE v8_weakref_objectspace();
VALUE v8_weakref_nil(VALUE nil, VALUE exception);
VALUE v8_weakref_id2ref(VALUE id);
#if RUBY_VERSION_MAJOR == 1 && RUBY_VERSION_MINOR == 8
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
#endif
#endif