diff options
Diffstat (limited to 'libs/libmraa/patches')
-rw-r--r-- | libs/libmraa/patches/020-support_v12.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libmraa/patches/020-support_v12.patch b/libs/libmraa/patches/020-support_v12.patch new file mode 100644 index 000000000..cc70d5ba6 --- /dev/null +++ b/libs/libmraa/patches/020-support_v12.patch @@ -0,0 +1,14 @@ +--- a/api/mraa/gpio.hpp ++++ b/api/mraa/gpio.hpp +@@ -175,7 +175,11 @@ + v8::Local<v8::Value> argv[] = { SWIGV8_INTEGER_NEW(-1) }; + #if NODE_MODULE_VERSION >= 0x000D + v8::Local<v8::Function> f = v8::Local<v8::Function>::New(v8::Isolate::GetCurrent(), This->m_v8isr); ++#if NODE_MODULE_VERSION >= 72 ++ f->Call(SWIGV8_CURRENT_CONTEXT(), SWIGV8_CURRENT_CONTEXT()->Global(), argc, argv); ++#else + f->Call(SWIGV8_CURRENT_CONTEXT()->Global(), argc, argv); ++#endif + #else + This->m_v8isr->Call(SWIGV8_CURRENT_CONTEXT()->Global(), argc, argv); + #endif |