On Mon, 02 Jul 2012 08:45:42 +0200, David Henningsson
<david.hennings...@canonical.com> wrote:
> It might make sense to keep something like
> 
> #ifndef HAVE_STD_BOOL
> typedef int bool;

I sincerely don't recommend that kind of hacks.

int and bool are completely different things. The representation in memory
may be different depending on the ABI. Furthermore, the conversion rule for
the compiler are not the same. That can introduce subtle bugs on old
compilers. I think it's best to fail explicitly than to hide bugs.

-- 
Rémi Denis-Courmont
Sent from my collocated server
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to