🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5579

Re: __STDC__ and non-conforming ANSI C compilers

#5579
From: Doug Gwyn
Date: Sat, 14 Jan 1989 12:46
11 lines
873 bytes
In article <179@smsdpg.uu.net> seg@smsdpg.uu.net (Scott Garfinkle) writes:
>You just can't say "#if __STDC_", you have to use #ifdef
>(or "#if defined()").

You got that exactly backward.

>In SVR4 cc, it *always* defines __STDC__, but sets it to 0 if you tell it you
>want "old-style C."

That's the same problem as was reported for MicroSoft.
SVR4 hasn't been released yet; perhaps they will fix this before release.
Technical Details
Message-ID: <9370@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-ncis!lll-lcc!ames!haven!adm!smoke!gwyn
References: <898@ubu.warwick.UUCP> <179@smsdpg.uu.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-ncis!lll-lcc!ames!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn )
Newsgroups: comp.std.c
Subject: Re: __STDC__ and non-conforming ANSI C compilers
Message-ID: <9370@smoke.BRL.MIL>
Date: 14 Jan 89 12:46:34 GMT
References: <898@ubu.warwick.UUCP> <179@smsdpg.uu.net>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 11