From: "J. Mayer" <l_indien@magic.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] portable to old compiler and kernel
Date: Mon, 17 May 2004 13:17:35 +0200 [thread overview]
Message-ID: <1084792655.8247.6731.camel@rapid> (raw)
In-Reply-To: <40A88730.6000208@simtreas.ru>
On Mon, 2004-05-17 at 11:34, Vladimir N. Oleynik wrote:
> Hi.
>
Hello,
> 3) hw/fdc.c
> #define FLOPPY_ERROR(fmt, args...) \
> do { printf("FLOPPY ERROR: %s: " fmt, __func__ , ##args); } while (0)
> to
> #define FLOPPY_ERROR(fmt, args...) \
> do { printf("FLOPPY ERROR: %s: " fmt, __FUNCTION__ , ##args); } while (0)
Don't do that. __func__ is ISO C, __FUNCTION__ isn't.
You'd better add this somewhere:
#if __GNUC__ <= 2 && __GNUC_MINOR__ < 95
#define __func__ __FUNCTION__
#endif
which makes egcs happy and doesn't make gcc 3.xx warn about deprecated
features.
--
J. Mayer <l_indien@magic.fr>
Never organized
prev parent reply other threads:[~2004-05-17 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200405161546.i4GFkHOR031617@treas.simtreas.ru>
2004-05-17 9:14 ` [Qemu-devel] vl.c -EAGAIN Vladimir N. Oleynik
2004-05-17 9:34 ` [Qemu-devel] portable to old compiler and kernel Vladimir N. Oleynik
2004-05-17 11:17 ` J. Mayer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1084792655.8247.6731.camel@rapid \
--to=l_indien@magic.fr \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).