0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-19 15:25:19 +00:00

include <functional> for std::function

This fixes build with g++ 7.0
This commit is contained in:
Stefan Siegl 2017-03-11 21:00:12 +01:00
parent 78b651535b
commit fb26b5049c

View File

@ -14,6 +14,8 @@
#ifndef V8JS_V8_H
#define V8JS_V8_H
#include <functional>
/* Helper macros */
#define V8JS_SYM(v) v8::String::NewFromUtf8(isolate, v, v8::String::kInternalizedString, sizeof(v) - 1)
#define V8JS_SYML(v, l) v8::String::NewFromUtf8(isolate, v, v8::String::kInternalizedString, l)