Article View: comp.std.c++
Article #1069Standard identification of compilers?
From: David S. Masterson
Date: Mon, 06 May 1991 16:57
Date: Mon, 06 May 1991 16:57
18 lines
1324 bytes
1324 bytes
Does the proposed standard (C or C++) have a way of identifying whose compiler is being used? I know its bad form to build code specific to a compiler when that compiler conforms to a standard, but it seems that every compiler has its little quirks that are specific to it. What I was wondering was if one could: #if (__COMPILER__ == "BC++ v2.02") ... #endif That way, *if you have to*, you could gear your code to a quirk. Is there a standard for this? If not, why not? -- ==================================================================== David Masterson Consilium, Inc. (415) 691-6311 640 Clyde Ct. uunet!cimshop!davidm Mtn. View, CA 94043 ==================================================================== "If someone thinks they know what I said, then I didn't say it!"
Technical Details
Message-ID:
<CIMSHOP!DAVIDM.91May6095720@uunet.UU.NET>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!cimshop!davidmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!cimshop!davidm From: cimshop!davidm@uunet.UU.NET (David S. Masterson) Newsgroups: comp.std.c++,comp.std.c Subject: Standard identification of compilers? Message-ID: <CIMSHOP!DAVIDM.91May6095720@uunet.UU.NET> Date: 6 May 91 16:57:20 GMT Sender: davidm@cimshop.UUCP Distribution: comp Organization: Consilium Inc., Mountain View, California Lines: 18 X-Posting-Software: GNUS 3.13 [ NNTP-based News Reader for GNU Emacs ]