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:
parent
72d181ecdc
commit
03777e31db
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <v8.h>
|
#include <v8.h>
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
|
#include "ruby/version.h"
|
||||||
|
|
||||||
struct v8_weakref {
|
struct v8_weakref {
|
||||||
v8_weakref(VALUE object);
|
v8_weakref(VALUE object);
|
||||||
|
@ -21,4 +22,9 @@ VALUE v8_weakref_objectspace();
|
||||||
VALUE v8_weakref_nil(VALUE nil, VALUE exception);
|
VALUE v8_weakref_nil(VALUE nil, VALUE exception);
|
||||||
VALUE v8_weakref_id2ref(VALUE id);
|
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
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue