浏览代码

Move libplatform.h include farther down

If it is included before php.h, PHP_V8_API_VERSION is not
defined if V8Js is built as a PHP built-in extension.
Stefan Siegl 9 年之前
父节点
当前提交
5018192123
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      v8js_v8.cc

+ 4 - 4
v8js_v8.cc

@@ -15,10 +15,6 @@
 #include "config.h"
 #endif
 
-#if !defined(_WIN32) && PHP_V8_API_VERSION >= 3029036
-#include <libplatform/libplatform.h>
-#endif
-
 extern "C" {
 #include "php.h"
 #include "ext/date/php_date.h"
@@ -28,6 +24,10 @@ extern "C" {
 #include "zend_exceptions.h"
 }
 
+#if !defined(_WIN32) && PHP_V8_API_VERSION >= 3029036
+#include <libplatform/libplatform.h>
+#endif
+
 #include "php_v8js_macros.h"
 #include "v8js_v8.h"
 #include "v8js_debug.h"