浏览代码

Include libplatform.h only for v8 >= 3.29.36

Stefan Siegl 10 年之前
父节点
当前提交
06371e4126
共有 1 个文件被更改,包括 3 次插入0 次删除
  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"