| 
   
       
  | 
   
| This document is available in: English Francais | 
 
by Guido Socher (homepage) About the author: Guido really likes it when a computer is tailored to his needs
and looks like he wants it. That's why he is using Linux.
    
  | 
LF Tip: #defines for writing portable C-code 
Abstract: 
This is a small tip. From now on LinuxFocus will have at least one new tip every month.
If you have some ideas  for a new tip
then send them to guido("at" sign)linuxfocus.org   | 
#ifdef sun // solaris static char *port="/dev/ttya"; #endif #ifdef linux // linux static char *port="/dev/ttyS0"; #endif
touch /tmp/foo.h ; cpp -dM /tmp/foo.hThat's all.
| 
Webpages maintained by the LinuxFocus Editor team
 © Guido Socher "some rights reserved" see linuxfocus.org/license/ http://www.LinuxFocus.org  | 
Translation information:
  | 
2005-08-06, generated by lfparser version 2.52