This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] common-defs.h: include <stdarg.h> before <stdio.h>
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org
- Date: Fri, 14 Nov 2014 16:54:50 +0000
- Subject: Re: [RFA] common-defs.h: include <stdarg.h> before <stdio.h>
- Authentication-results: sourceware.org; auth=none
- References: <1415983688-26796-1-git-send-email-brobecker at adacore dot com>
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