From 43484f03bca7640119e4e51441b6fb340d802a5f Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 14 Mar 2010 22:38:38 +0000 Subject: * charset.c [USE_WIN32API]: Include . (_initialize_charset): Correct type of w32_host_default_charset. --- gdb/ChangeLog | 5 +++++ gdb/charset.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e75d65b..3944076 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-14 Daniel Jacobowitz + + * charset.c [USE_WIN32API]: Include . + (_initialize_charset): Correct type of w32_host_default_charset. + 2010-03-14 Pedro Alves * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. diff --git a/gdb/charset.c b/gdb/charset.c index 9c1e7f4..b60c5fa 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -33,6 +33,9 @@ #include "gdb_string.h" #include +#ifdef USE_WIN32API +#include +#endif /* How GDB's character set support works @@ -932,7 +935,7 @@ _initialize_charset (void) auto_target_charset_name = auto_host_charset_name; #elif defined (USE_WIN32API) { - static w32_host_default_charset[16]; /* "CP" + x<=5 digits + paranoia. */ + static char w32_host_default_charset[16]; /* "CP" + x<=5 digits + paranoia. */ snprintf (w32_host_default_charset, sizeof w32_host_default_charset, "CP%d", GetACP()); -- cgit v1.1