X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 8 Apr 2002 17:36:56 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Kunal Gangakhedkar cc: djgpp AT delorie DOT com Subject: Re: Preprocessor directives In-Reply-To: <9b84a27b.0204080459.66818425@posting.google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 8 Apr 2002, Kunal Gangakhedkar wrote: > 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?? You find this out by reading the documentation of the compiler. There's no other way, AFAIK. > 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...) If you have a list of specific features you need to be supported, you can ask on the appropriate forum (for DJGPP, this forum is the right one). > > 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. If you need to know the specific type of Windows you are running on, there are functions for that (for example, GetVersionEx).