Browse Source

include <functional> for std::function

This fixes build with g++ 7.0
Stefan Siegl 8 years ago
parent
commit
fb26b5049c
1 changed files with 2 additions and 0 deletions
  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)