delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/29/07:45:04

From: "Traveler" <traveler AT netti DOT fi>
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
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
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019