[vlc-devel] [RFC] Remove vlc_bool_t in favor of bool

Rémi Denis-Courmont rem at videolan.org
Tue Apr 15 12:09:40 CEST 2008


Le mardi 15 avril 2008, Pierre d'Herbemont a écrit :
> On Apr 14, 2008, at 8:51 AM, Jean-Paul Saman wrote:
> > Does beos, solaris, QNX and other ports support it ?
>
> It's C99 standard. #incluse <stdbool.h>. So if the compiler used
> supports it, it works. So I guess the answer is yes.
>
> Note, VLC requires a C99 compiler. Please also note that we had:
> #define VLC_TRUE true
> etc.
>
> So basically we just prefixed the C99 types with vlc_.

Hmm. You can always add:

typedef int bool;
#define false 0
#define true 1

...if the compiler did not have <stdbool.h>. Better get a decent 
compiler though.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list