X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Flayout.c;h=a458c77d54db95bd57339ab2aea677ace3683d17;hb=698841dfdd4d70d24e0b7af25ac7100bc2cb26a4;hp=1a7dcb644a3ca3dd7aa60bc8f600326d78d1ddb7;hpb=b09850fb2c28c23547fed5ac83faf0fa2d3e6b8b;p=m6w6%2Fext-psi diff --git a/src/types/layout.c b/src/types/layout.c index 1a7dcb6..a458c77 100644 --- a/src/types/layout.c +++ b/src/types/layout.c @@ -23,14 +23,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include "data.h" #include struct psi_layout *psi_layout_init(size_t pos, size_t len, struct psi_layout *bfw) { - struct psi_layout *l = calloc(1, sizeof(*l)); + struct psi_layout *l = pecalloc(1, sizeof(*l), 1); assert(pos + len + (intptr_t) bfw);