Currently libiconv-stub and libiconv-full use different names for functions iconv, iconv_open, and iconv_close. This may lead to failures when building modules, e.g. with apr-util when NLS is not activated. The two modules libiconv-stub and libiconv-full should be interchangeable, so we need the same function names. cf. http://git.savannah.gnu.org/cgit/libiconv.git/tree/include/iconv.h.in After applying this patch execute make distclean Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> SVN-Revision: 48301
37 lines
679 B
C
37 lines
679 B
C
#ifndef _ICONV_H
|
|
#define _ICONV_H 1
|
|
|
|
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
|
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int _libiconv_version; /* Likewise */
|
|
|
|
typedef long iconv_t;
|
|
|
|
#define iconv_open libiconv_open
|
|
#define iconv libiconv
|
|
#define iconv_close libiconv_close
|
|
|
|
extern iconv_t
|
|
iconv_open(const char *tocode, const char *fromcode);
|
|
|
|
extern size_t
|
|
iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
|
|
char **outbuf, size_t *outbytesleft);
|
|
|
|
extern int
|
|
iconv_close(iconv_t cd);
|
|
|
|
#define libiconv_set_relocation_prefix(...) do {} while(0)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ICONV_H */
|