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: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 14 Nov 2014 21:02:17 +0400
- 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> <546633DA dot 3070403 at redhat dot com>
> > 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.
Thank you, Pedro. Now pushed.
--
Joel