aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-03-14 22:38:38 +0000
committerDaniel Jacobowitz <drow@false.org>2010-03-14 22:38:38 +0000
commit43484f03bca7640119e4e51441b6fb340d802a5f (patch)
tree6b7ba3e2ab5b9acca845501826216a7ac86c30cb /gdb/charset.c
parent93ae6fdc3156825efcb9892b98e81ad4ed83e078 (diff)
downloadgdb-43484f03bca7640119e4e51441b6fb340d802a5f.zip
gdb-43484f03bca7640119e4e51441b6fb340d802a5f.tar.gz
gdb-43484f03bca7640119e4e51441b6fb340d802a5f.tar.bz2
* charset.c [USE_WIN32API]: Include <windows.h>.
(_initialize_charset): Correct type of w32_host_default_charset.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c5
1 files changed, 4 insertions, 1 deletions
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 <ctype.h>
+#ifdef USE_WIN32API
+#include <windows.h>
+#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());