gcc question

Kathy Quinlan kat-free at kaqelectronics.dyndns.org
Thu Feb 24 04:30:18 GMT 2005

Hi all,

I have some code that I build for two targets, one an Atmel uC and the 
other FreeBSD.

What is the best way to redefine getchar and putchar (in uC they use the 
serial port, in FreeBSD stdin stdout)

Or would I be better #ifdef the commands and making getchar only used in 
uC and my serial port handler in FreeBSD ??

Thanks for the help



No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005

More information about the freebsd-hackers mailing list