Article View: comp.std.c++
Article #2809Re: Standard C++ Macro
From: Bob Kline
Date: Thu, 30 Nov 1995 19:27
Date: Thu, 30 Nov 1995 19:27
41 lines
2094 bytes
2094 bytes
The C standard specifies the name __STDC__ as the official way to indicate support for the standard. Unfortunately, of course, in practice all you get is an indication that the vendor claims compliance. Amol_Khedkar@bocagate.bocaraton.ibm.com wrote: : In <4998dt$j01@newsbf02.news.aol.com>, krishtere@aol.com (Krishtere) writes: : >OK, perhaps this is a stupid question and its there as plain as day in : >front of me but... : > : >In the ANSI C std there is a macro something like _STD_C_ which could be : >used to determine if the compiler was ANSI-compliant: : > : >#ifdef _STD_C_ : >/* stuff that requires ANSI-compliance */ : >#endif : > : [text deleted] : I don't believe that ANSI dictates the existence of such a macro. I could be : wrong on this one. However, if I remember correctly, MS C 6.0 defined a macro : __STDC__ and IBM C-Set++ defines one called __ANSI__. I believe this varies : with the compiler that you're using. Check the compiler documentation. : Hope this helped! : Cheers! : -- Amol. -- /*----------------------------------------------------------------------*/ /* Bob Kline Stream International */ /* bob_kline@stream.com formerly Corporate Software, Inc. */ /* voice: (703) 522-0820 x-311 fax: (703) 522-5407 */ /*----------------------------------------------------------------------*/ --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<49kflh$oqo@lhc.nlm.nih.gov>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<4998dt$j01@newsbf02.news.aol.com> <49cjnm$p04@bocanews.bocaraton.ibm.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: bkline@cortex.nlm.nih.gov (Bob Kline) Newsgroups: comp.std.c++ Subject: Re: Standard C++ Macro Date: 30 Nov 1995 19:27:18 GMT Organization: National Library of Medicine Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <49kflh$oqo@lhc.nlm.nih.gov> References: <4998dt$j01@newsbf02.news.aol.com> <49cjnm$p04@bocanews.bocaraton.ibm.com> NNTP-Posting-Host: physics2.berkeley.edu