* charset.c [USE_WIN32API]: Include <windows.h>.
[deliverable/binutils-gdb.git] / gdb / charset.c
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.024149 seconds and 4 git commands to generate.