Fri, 07 Sep 2012 19:08:07 +0200
Correct build configuration in Solaris subdir, correct english grammar,
remove irrelevant strip notice, introduce custom CFLAG logic, facilitate
use of Solaris Studio compiler with needed build configuration
adjustments, conditionally build 64 bit position independent code,
and accommodate tun(7) in newer Solaris releases by renaming driver
and module from conflicting 'tun' to 'vtun'. These changes include
some nonstandard 'I give up' logic causing out of tree builds by
manipulating the PATH, for example.
michael@512 | 1 | Index: utf8.h |
michael@512 | 2 | --- utf8.h.orig 2012-08-10 11:27:29.714031512 +0200 |
michael@512 | 3 | +++ utf8.h 2012-08-10 11:29:26.743204276 +0200 |
michael@512 | 4 | @@ -27,6 +27,18 @@ |
michael@512 | 5 | #define UTF8_IGNORE_ERROR 0x01 |
michael@512 | 6 | #define UTF8_SKIP_BOM 0x02 |
michael@512 | 7 | |
michael@512 | 8 | +#ifndef __BEGIN_DECLS |
michael@512 | 9 | +#undef __BEGIN_DECLS |
michael@512 | 10 | +#undef __END_DECLS |
michael@512 | 11 | +#ifdef __cplusplus |
michael@512 | 12 | +# define __BEGIN_DECLS extern "C" { |
michael@512 | 13 | +# define __END_DECLS } |
michael@512 | 14 | +#else |
michael@512 | 15 | +# define __BEGIN_DECLS /* empty */ |
michael@512 | 16 | +# define __END_DECLS /* empty */ |
michael@512 | 17 | +#endif |
michael@512 | 18 | +#endif /* __BEGIN_DECLS */ |
michael@512 | 19 | + |
michael@512 | 20 | __BEGIN_DECLS |
michael@512 | 21 | |
michael@512 | 22 | size_t utf8_to_wchar(const char *in, size_t insize, wchar_t *out, |