typedef int BOOL;

Oct 4, 2009 at 3:31pm
found this in WinDef.h

...why?
Oct 4, 2009 at 4:55pm
Because C doesn't have a boolean data type.
Oct 4, 2009 at 6:47pm
oh.. thanks, though wouldn't char make more sense?
Oct 4, 2009 at 7:24pm
char could actually be slower as int's size equals to the CPU's word-size.
Topic archived. No new replies allowed.