Explorar o código

include <functional> for std::function

This fixes build with g++ 7.0
Stefan Siegl %!s(int64=8) %!d(string=hai) anos
pai
achega
fb26b5049c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      v8js_v8.h

+ 2 - 0
v8js_v8.h

@@ -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)