Selaa lähdekoodia

Include libplatform.h only for v8 >= 3.29.36

Stefan Siegl 10 vuotta sitten
vanhempi
commit
06371e4126
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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"