mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-09 16:28:41 +00:00
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.
This commit is contained in:
parent
3324490a79
commit
5018192123
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user