Xref: utzoo comp.std.c++:891 comp.std.c:4802 Path: 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: 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 ] 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!"