Fix Windows ZTS build.

This commit is contained in:
CismonX 2018-09-08 13:07:29 +08:00
parent 50219ce708
commit 9dace534af
2 changed files with 8 additions and 4 deletions

View File

@ -4,10 +4,6 @@
// @Author CismonX
//
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php_collections.h"
#include <zend_interfaces.h>
@ -29,6 +25,10 @@ zend_class_entry* collections_pair_ce;
ZEND_DECLARE_MODULE_GLOBALS(collections)
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE()
#endif
static zend_always_inline void collection_ce_init()
{
COLLECTIONS_CE_INIT(collection, "Collection");

View File

@ -7,6 +7,10 @@
#ifndef PHP_COLLECTIONS_H
#define PHP_COLLECTIONS_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <php.h>
extern zend_module_entry collections_module_entry;