diff options
author | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
commit | 0cfbfd6186c7b28a355069ebb89b9739908318c6 (patch) | |
tree | a1e2990f266ca151fc47f06d41f40bca743eea76 /jnlib/utf8conv.h | |
parent | Syntax fix - should build now - however not tested. (diff) | |
download | gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.tar.gz gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.zip |
A whole bunch of changes to allow building for Windows.
See the ChangeLogs for details.
Diffstat (limited to '')
-rw-r--r-- | jnlib/utf8conv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jnlib/utf8conv.h b/jnlib/utf8conv.h index 9e1ce9530..757920cac 100644 --- a/jnlib/utf8conv.h +++ b/jnlib/utf8conv.h @@ -30,4 +30,14 @@ char *native_to_utf8 (const char *string); char *utf8_to_native (const char *string, size_t length, int delim); +/* Silly wrappers, required for W32 portability. */ +typedef void *jnlib_iconv_t; + +jnlib_iconv_t jnlib_iconv_open (const char *tocode, const char *fromcode); +size_t jnlib_iconv (jnlib_iconv_t cd, const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft); +int jnlib_iconv_close (jnlib_iconv_t cd); + + + #endif /*LIBJNLIB_UTF8CONF_H*/ |