Use the compiler-provided booleans if available, otherwise emulate