From: "Traveler" Newsgroups: comp.os.msdos.djgpp Subject: Making OS-independent code little easier... Date: Sun, 29 Jul 2001 15:02:45 +0300 Organization: SAUNALAHDEN asiakas Lines: 49 Message-ID: <9k0s5b$1hr$1@tron.sci.fi> NNTP-Posting-Host: mc.hdyn.saunalahti.fi Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: tron.sci.fi 996406251 1595 195.197.6.200 (29 Jul 2001 11:30:51 GMT) X-Complaints-To: newsmaster AT saunalahti DOT fi NNTP-Posting-Date: 29 Jul 2001 11:30:51 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id HAB27141 Reply-To: djgpp AT delorie DOT com #ifndef __OS__H #define __OS_H #ifndef __LINUX__ #ifdef LINUX #define __LINUX__ LINUX #elif linux #define __LINUX__ linux #endif #endif #ifndef __MAC__ #ifdef MAC #define __MAC__ MAC #elif mac #define __MAC__ mac #endif #endif #ifndef __MSDOS__ #ifdef MSDOS #define __MSDOS__ MSDOS #elif msdos #define __MSDOS__ msdos #endif #endif #ifndef __UNIX__ #ifdef UNIX #define __UNIX__ UNIX #elif unix #define __UNIX__ unix #endif #endif #ifndef __WINDOWS__ #ifdef WINDOWS #define __WINDOWS__ WINDOWS #elif windows #define __WINDOWS__ windows #endif #endif #endif Traveler traveler AT netti DOT fi