diff options
| author | Nuno Lopes <nlopess@php.net> | 2006-04-19 21:47:20 +0000 |
|---|---|---|
| committer | Nuno Lopes <nlopess@php.net> | 2006-04-19 21:47:20 +0000 |
| commit | 227ca46fb70506f236f86e40d170f5f030f351f7 (patch) | |
| tree | 038cfef5234a65e1ff61a11e6fcdfcb9cfad7038 /ext/tidy | |
| parent | 974dc0f5b42bb0015bae57e438832beaede60170 (diff) | |
| download | php-git-227ca46fb70506f236f86e40d170f5f030f351f7.tar.gz | |
fix build with newer libtidy versions on windows
# first commit on php-src. whatch out :)
Diffstat (limited to 'ext/tidy')
| -rw-r--r-- | ext/tidy/tidy.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 43327bdaba..39c25b7059 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -37,6 +37,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); |
