Parcourir la source

define V8_ENABLE_SANDBOX if needed

Stefan Siegl il y a 2 ans
Parent
commit
fa264c9ec5
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      php_v8js_macros.h

+ 4 - 0
php_v8js_macros.h

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