From 988691d2dcd9ba5161ad37f743f4abd5cc856223 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 4 Oct 2013 00:05:11 +0200 Subject: [PATCH] Fix CopyablePersistentTraits for v8 3.21.15 .. 3.21.18.x --- v8js_convert.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v8js_convert.cc b/v8js_convert.cc index 3ca93a7..4f76dcc 100644 --- a/v8js_convert.cc +++ b/v8js_convert.cc @@ -37,8 +37,14 @@ namespace v8 { typedef Persistent > CopyablePersistent; static const bool kResetInDestructor = true; template +#if PHP_V8_API_VERSION >= 3021015 + static V8_INLINE void Copy(const Persistent& source, + CopyablePersistent* dest) +#else V8_INLINE(static void Copy(const Persistent& source, - CopyablePersistent* dest)) { + CopyablePersistent* dest)) +#endif + { // do nothing, just allow copy } };