🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2772

Re: Standard C++ Macro

#2772
From: Amol_Khedkar
Date: Tue, 28 Nov 1995 00:25
27 lines
1585 bytes
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.
---
[ 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: <49cjnm$p04@bocanews.bocaraton.ibm.com>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <4998dt$j01@newsbf02.news.aol.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 28 Nov 95 00:25:48 GMT
Approved: fjh@cs.mu.oz.au
From: Amol_Khedkar@bocagate.bocaraton.ibm.com
Newsgroups: comp.std.c++
Subject: Re: Standard C++ Macro
X-Original-Date: 27 Nov 1995 14:59:02 GMT
Organization: IBM Boca Raton
Message-ID: <49cjnm$p04@bocanews.bocaraton.ibm.com>
References: <4998dt$j01@newsbf02.news.aol.com>
Reply-To: Amol_Khedkar@bocagate.bocaraton.ibm.com
X-Newsreader: IBM NewsReader/2 v1.02
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMLpXG+EDnX0m9pzZAQGzdQGAl1kQKocXOEdkwqhA/Ll35QHh71oVGTT2
 Q2C7gxpL2mdQL66r+nOgIUj+4uMvfpNL
 =W+z/