delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/08/09:00:20

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: kgangakhedkar AT softhome DOT net (Kunal Gangakhedkar)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Preprocessor directives
Date: 8 Apr 2002 05:59:49 -0700
Organization: http://groups.google.com/
Lines: 33
Message-ID: <9b84a27b.0204080459.66818425@posting.google.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020408084624 DOT 28095C-100000 AT is>
NNTP-Posting-Host: 203.197.79.249
X-Trace: posting.google.com 1018270789 28667 127.0.0.1 (8 Apr 2002 12:59:49 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 8 Apr 2002 12:59:49 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I think most (if not all) MS-DOS compilers have __MSDOS__ defined.
> 
> However, you will have to verify that for each compiler you want to be 
> supported by your program.  It's easy once you have the compiler 
> available--just write a simple source file that uses #ifdef __MSDOS__, 
> and see if the conditional part is compiled.
> 
> Since you cannot really say a certain compiler is supported without 
> trying to compile the program with that compiler, checking whether it 
> supports __MSDOS__ is the least of your trouble.
> 

But again, the same question arises, how do I find out how and what
all things (in this context of OS)are supported by the compiler, if
there isn't a general way of doing these things??

Then only can I finalise or choose a proper compiler.
If a compiler does not provide what I want, then there is no way I'll
use it
(or test it for that matter...)


> Most Windows compilers have _WIN32 defined, IIRC.
> 
This is a general Win32 macro to detect the presence of Win32 bit
environment.
It does not say anything about whether it is NT or 9x.

I think, Mr. DJ should be able to answer it...

Kunal Gangakhedkar
(kgangakhedkar AT softhome DOT net)
(kgangakhekar AT hotpop DOT com)

- Raw text -


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