Browse Source

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 years ago
parent
commit
5018192123
1 changed files with 4 additions and 4 deletions
  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"