diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-05-08 08:48:45 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2009-05-08 08:48:45 +0000 |
commit | 34e8a6f7a72ce3fec6915bed79b770400d3bd180 (patch) | |
tree | 344c744d2ebf10f4184a18dc9753974d1ec4decd /binutils | |
parent | b0afac70a69ae03505e4722f033cca889c12b945 (diff) | |
download | gdb-34e8a6f7a72ce3fec6915bed79b770400d3bd180.zip gdb-34e8a6f7a72ce3fec6915bed79b770400d3bd180.tar.gz gdb-34e8a6f7a72ce3fec6915bed79b770400d3bd180.tar.bz2 |
2009-05-08 Kai Tietz <kai.tietz@onevision.com>
* winduni.c (iconv_onechar): Only define when HAVE_ICONV
is defined, but not when __CYGWIN__ or _WIN32 are defined.
See wind_iconv_cp for call logic of this local funtion.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/winduni.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index c2949fc..ee76d0f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2009-05-08 Kai Tietz <kai.tietz@onevision.com> + + * winduni.c (iconv_onechar): Only define when HAVE_ICONV + is defined, but not when __CYGWIN__ or _WIN32 are defined. + See wind_iconv_cp for call logic of this local funtion. + 2009-05-05 Guillaume Duhamel <guillaume.duhamel@gmail.com> PR 10109 diff --git a/binutils/winduni.c b/binutils/winduni.c index 1af3c39..f811de7 100644 --- a/binutils/winduni.c +++ b/binutils/winduni.c @@ -616,7 +616,7 @@ codepage_from_unicode (rc_uint_type *length, const unichar *unicode, char **asci *length = len; } -#ifdef HAVE_ICONV +#if defined (HAVE_ICONV) && !defined (_WIN32) && !defined (__CYGWIN__) static int iconv_onechar (iconv_t cd, ICONV_CONST char *s, char *d, int d_len, const char **n_s, char **n_d) { |