Skip to content

Commit

Permalink
put utf_16to8 under #ifdef _WIN32, thanks Toralf
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=18892
  • Loading branch information
ulflulfl committed Aug 13, 2006
1 parent f7f96d5 commit 0cfb4a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dumpcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ signal_pipe_check_running(void)
const char *netsnmp_get_version(void) { return ""; }


#ifdef _WIN32

/* Convert from UTF-16 to UTF-8. */
/* XXX - copied from epan/strutil.c */
#define INITIAL_FMTBUF_SIZE 128
Expand Down Expand Up @@ -667,3 +669,5 @@ gchar * utf_16to8(const wchar_t *utf16str) {
return utf8buf[idx];
}

#endif /* _WIN32 */

0 comments on commit 0cfb4a7

Please sign in to comment.