mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
MFB: fix build with newer libtidy versions on windows
This commit is contained in:
parent
4618370e8d
commit
ece1a5598a
1 changed files with 9 additions and 4 deletions
|
@ -36,6 +36,11 @@
|
|||
#include "tidy.h"
|
||||
#include "buffio.h"
|
||||
|
||||
/* compatibility with older versions of libtidy */
|
||||
#ifndef TIDY_CALL
|
||||
#define TIDY_CALL
|
||||
#endif
|
||||
|
||||
#define PHP_TIDY_MODULE_VERSION "2.0"
|
||||
|
||||
/* {{{ ext/tidy macros
|
||||
|
@ -333,22 +338,22 @@ zend_module_entry tidy_module_entry = {
|
|||
ZEND_GET_MODULE(tidy)
|
||||
#endif
|
||||
|
||||
void *php_tidy_malloc(size_t len)
|
||||
void* TIDY_CALL php_tidy_malloc(size_t len)
|
||||
{
|
||||
return emalloc(len);
|
||||
}
|
||||
|
||||
void *php_tidy_realloc(void *buf, size_t len)
|
||||
void* TIDY_CALL php_tidy_realloc(void *buf, size_t len)
|
||||
{
|
||||
return erealloc(buf, len);
|
||||
}
|
||||
|
||||
void php_tidy_free(void *buf)
|
||||
void TIDY_CALL php_tidy_free(void *buf)
|
||||
{
|
||||
efree(buf);
|
||||
}
|
||||
|
||||
void php_tidy_panic(ctmbstr msg)
|
||||
void TIDY_CALL php_tidy_panic(ctmbstr msg)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not allocate memory for tidy! (Reason: %s)", (char *)msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue