[RFA] common-defs.h: include <stdarg.h> before <stdio.h>
Pedro Alves
palves@redhat.com
Fri Nov 14 16:54:00 GMT 2014
On 11/14/2014 04:48 PM, Joel Brobecker wrote:
> When trying to build gdbserver on ppc-lynx178, the compiler reports
> while trying to compile gdbserver/ax.c that vsprintf is not declared.
> Looking at my C99 reference manual (a draft), I see the following
> synopsis:
>
> #include <stdarg.h>
> #include <stdio.h>
> int vsprintf(char * restrict s, [etc]);
This says the same:
http://pubs.opengroup.org/onlinepubs/009695399/functions/vfprintf.html
> OK to commit?
Definitely.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list