This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Windows charset change
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Corinna Vinschen <vinschen at redhat dot com>, Tom Tromey <tromey at redhat dot com>
- Date: Thu, 11 Mar 2010 13:18:01 -0500
- Subject: Windows charset change
My mingw builds have:
charset.c: In function '_initialize_charset':
charset.c:935: error: type defaults to 'int' in declaration of 'w32_host_default_charset'
charset.c:938: error: implicit declaration of function 'GetACP'
charset.c:938: error: passing argument 1 of 'snprintf' from incompatible pointer type
charset.c:939: error: assignment from incompatible pointer type
The error on line 935 is straightforward:
static w32_host_default_charset[16]; /* "CP" + x<=5 digits + paranoia. */
This is supposed to be char, I presume?
The implicit declaration of GetACP is harder; I don't know what should
have been included to declare it. Looks like windows.h or winnls.h.
--
Daniel Jacobowitz
CodeSourcery