* charset.c [USE_WIN32API]: Include <windows.h>.
authorDaniel Jacobowitz <drow@false.org>
Sun, 14 Mar 2010 22:38:38 +0000 (22:38 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 14 Mar 2010 22:38:38 +0000 (22:38 +0000)
 (_initialize_charset): Correct type of w32_host_default_charset.

gdb/ChangeLog
gdb/charset.c

index e75d65bf11006f07647b59d53a9319b2ff007202..39440766333544d847e638e3d697bcd1d320a065 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * charset.c [USE_WIN32API]: Include <windows.h>.
+        (_initialize_charset): Correct type of w32_host_default_charset.
+
 2010-03-14  Pedro Alves  <pedro@codesourcery.com>
 
        * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
index 9c1e7f48e70476090b774ba899f8407b6059f811..b60c5fab499a5c570e5abdceb98c413d54cc4ef7 100644 (file)
@@ -33,6 +33,9 @@
 #include "gdb_string.h"
 #include <ctype.h>
 
+#ifdef USE_WIN32API
+#include <windows.h>
+#endif
 \f
 /* 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());
This page took 0.032669 seconds and 4 git commands to generate.