From 50181921235f4c6a60fb08a118e0f19604045fd3 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 2 Aug 2015 18:15:04 +0200 Subject: [PATCH] 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. --- v8js_v8.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v8js_v8.cc b/v8js_v8.cc index ccd24a1..742c559 100644 --- a/v8js_v8.cc +++ b/v8js_v8.cc @@ -15,10 +15,6 @@ #include "config.h" #endif -#if !defined(_WIN32) && PHP_V8_API_VERSION >= 3029036 -#include -#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 +#endif + #include "php_v8js_macros.h" #include "v8js_v8.h" #include "v8js_debug.h"