@martin
Warum nicht

sbi(PORTB, 2) -> PORTB |= (1<<2);
cbi(PORTB, 2) -> PORTB &= ~(1<<2);

Sollte mit jedem Complier funktionieren der ANSI C unterstützt ( also auch WinAVR und Codevision )...

MfG Kjion