Suggestions
Tom Hughes
tom at compton.nu
Tue Apr 25 17:33:24 BST 2000
In message <200004250613.XAA20030 at purple.trimedia.sv.sc.philips.com>
"Jonathan Coxhead" <jonathan at doves.demon.co.uk> wrote:
> The other way to avoid trouble is to avoid compilers that have the
> problem. Obviously, M$ isn't a problem for us. If Norcroft C99
> (if/when it appears) and GNU C/C++ both have |sizeof (bool) == 4|
> then we have no issue.
A data point using egcs 1.1.2 on my linux box:
gosford [~] % cat test.c
#ifndef __cplusplus
#include <stdbool.h>
#endif
#include <stdio.h>
int main(int argc, char **argv)
{
printf("%d\n", sizeof(bool));
return 0;
}
gosford [~] % gcc test.c
gosford [~] % ./a.out
4
gosford [~] % g++ test.c
gosford [~] % ./a.out
1
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
...Awright, which one of you hid my PENIS ENVY?
More information about the oslib-user
mailing list