Explorar o código

Include libplatform.h only for v8 >= 3.29.36

Stefan Siegl %!s(int64=10) %!d(string=hai) anos
pai
achega
06371e4126
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      v8js.cc

+ 3 - 0
v8js.cc

@@ -20,7 +20,10 @@
 #endif
 
 #include <v8-debug.h>
+
+#if PHP_V8_API_VERSION >= 3029036
 #include <libplatform/libplatform.h>
+#endif
 
 #include "php_v8js_macros.h"