www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/13/22:55:14

Date: Wed, 13 Sep 1995 22:45:57 -0400
From: dj (DJ Delorie)
To: storm AT olicom DOT dk
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: #if (DJGPP_VERSION == 2) ?

DJGPP V1 defines __MSDOS__ and __GO32__

DJGPP V2 defines those, and defines __DJGPP__ to 2 and __DJGPP_MINOR__
to 0

Use code like this:

#ifdef __MSDOS__
#ifdef __GO32__
#ifdef __DJGPP__
/* V2 */
#else
/* V1 */
#endif
#else
/* other ms-dos
#endif
#else
/* unix */
#endif


O_RDONLY is defined in both V1 and V2.

DJ

- Raw text -


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