#include <iostream.h>

main ()
{
  switch (sizeof (bool))
    {
      case 1:
        cout << "typedef unsigned char bool;\n";
	break;
      case 2:
        cout << "typedef unsigned short bool;\n";
	break;
      case 4:
        cout << "typedef unsigned long bool;\n";
	break;
    }
}



syntax highlighted by Code2HTML, v. 0.9.1