michael@512: Index: utf8.h michael@512: --- utf8.h.orig 2012-08-10 11:27:29.714031512 +0200 michael@512: +++ utf8.h 2012-08-10 11:29:26.743204276 +0200 michael@512: @@ -27,6 +27,18 @@ michael@512: #define UTF8_IGNORE_ERROR 0x01 michael@512: #define UTF8_SKIP_BOM 0x02 michael@512: michael@512: +#ifndef __BEGIN_DECLS michael@512: +#undef __BEGIN_DECLS michael@512: +#undef __END_DECLS michael@512: +#ifdef __cplusplus michael@512: +# define __BEGIN_DECLS extern "C" { michael@512: +# define __END_DECLS } michael@512: +#else michael@512: +# define __BEGIN_DECLS /* empty */ michael@512: +# define __END_DECLS /* empty */ michael@512: +#endif michael@512: +#endif /* __BEGIN_DECLS */ michael@512: + michael@512: __BEGIN_DECLS michael@512: michael@512: size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out,