Browse Source

define V8_ENABLE_SANDBOX if needed

Stefan Siegl 2 years ago
parent
commit
fa264c9ec5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      php_v8js_macros.h

+ 4 - 0
php_v8js_macros.h

@@ -52,6 +52,10 @@ extern "C" {
 #undef COMPILER
 #undef COMPILER
 #endif
 #endif
 
 
+#ifdef V8_HAS_INITIALIZE_SANDBOX
+#define V8_ENABLE_SANDBOX 1
+#endif
+
 #include <v8.h>
 #include <v8.h>
 #include <v8-platform.h>
 #include <v8-platform.h>