qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] c99 or not?


From: François Revol
Subject: Re: [Qemu-devel] c99 or not?
Date: Mon, 18 Aug 2008 00:33:31 +0200 CEST

> I've been hacking about on qemu again on Solaris 10, which I've run
> into an issue.
>
> in the nbd.h file, it includes stdbool.h, but on Solaris 10, you have
> to enable c99
> to get this to compile.
>
> This has a rather nasty set of cascading effects, most of which are
> anonymous
> unions in nbd.c and vga_vmware.c, as well asm needing to be __asm
> scattered throughout the code.
>
> Thoughts on this?  I already have some prototype code to fix up nbd.c
> and vga_vmware.c to get rid of the anonymous unions, but will have
> some
> more work to complete to get a working compile.
>

As a BeOS and Haiku dev, I'm used to having to "fix" apps back to c89
to get them working with gcc2 because we are forced to stick to it due
to the C++ ABI breackage.
Haiku shall also provice gcc4 soon, and it might be possible to get
gcc4 usable under BeOS, but it's like hunting a fly with a hand
grenade.

Now, I didn't try to build QEMU on BeOS for quite some time, not even
sure it'd still build. I don't know if Mickael Lotz (BeOS port
maintainer IIRC) has recent builds either.
Still, avoiding C99 if possible would help, and possibly other
platforms.

François.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]