mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
MFH(r-1.98): Fixed bug #26194 (iconv() not properly defined with libiconv).
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
#include <gnu/libc-version.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBICONV
|
||||
#undef iconv
|
||||
#endif
|
||||
|
||||
/* {{{ iconv_functions[]
|
||||
*/
|
||||
function_entry iconv_functions[] = {
|
||||
@@ -91,6 +95,10 @@ typedef enum _php_iconv_err_t {
|
||||
} php_iconv_err_t;
|
||||
/* }}} */
|
||||
|
||||
#ifdef HAVE_LIBICONV
|
||||
#define iconv libiconv
|
||||
#endif
|
||||
|
||||
/* {{{ prototypes */
|
||||
static php_iconv_err_t php_iconv_string(const char * in_p, size_t in_len, char **out, size_t *out_len, const char *in_charset, const char *out_charset);
|
||||
static void _php_iconv_show_error(php_iconv_err_t err, const char *in_charset, const char *out_charset TSRMLS_DC);
|
||||
|
||||
Reference in New Issue
Block a user