This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH] windows-nat: Decode system error numbers
> From: Pedro Alves <firstname.lastname@example.org>
> Date: Wed, 9 Nov 2011 16:58:00 +0000
> Cc: "Maciej W. Rozycki" <email@example.com>
> > Will this DTRT with Cygwin, which AFAIK wants the wide versions of the
> > APIs? Is, for example, "char buf;" appropriate in that case?
> Yeah, if UNICODE is defined, FormatMessage maps to FormatMessageW and
> buf will be filled with a wide string, though I'm not sure
> if __USEWIDE implies UNICODE.
But buf should be TCHAR then, shouldn't it?