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: NNTP-Posting-Host: 203.197.79.249 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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)