🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #845

Re: gcc 2.3.2 on SCO 3.2.4 (__STDC__)

#845
From: Warren Tucker
Date: Thu, 21 Jan 1993 05:02
28 lines
1676 bytes
Mads Westermann (wes@dd.dk) wrote:
: Sometime ago there was a discussion on a problem involving the
: definition of __STDC__ in gcc versus cc on SCO 3.2.4. I have now
: run into the problem and cannot remember what the solution was !!
: 
: If there's somebody out there that has the solution I'd be very
: interested in hearing about it.

To make sure it works for me with K&R code, I do:

CC = gcc
CFLAGS = \
	-traditional -D__STDC__=0 \
	-D_NO_PROTOTYPE -D_SVID -D_KR \
	-DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
	-DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
	-DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix -Di386

This gives no way to recalcitrant header files or to various
gcc configuration philosophies.

Chip Salzberg has provided a configuration for gcc which obviates
the need for *most* of the above, but not all.  The above make *sure*
even if you have not received the benefit of Chip's wisdom.

------------------------------------------------------------------------------
Warren Tucker  (404)587-5766              n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
All readers cannot be leaders, but all leaders must be readers. - Harry Truman
Technical Details
Message-ID: <1993Jan21.050236.16536@n4hgf.Mt-Park.GA.US>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!wa4mei.atl.ga.us!kd4nc!n4hgf!wht
References: <1993Jan20.123122.12886@dd.dk>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help,comp.unix.sysv386,biz.sco.general
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!wa4mei.atl.ga.us!kd4nc!n4hgf!wht
From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
Subject: Re: gcc 2.3.2 on SCO 3.2.4 (__STDC__)
Organization: TuckerWare/ARS N4HGF
Date: Thu, 21 Jan 1993 05:02:36 GMT
Message-ID: <1993Jan21.050236.16536@n4hgf.Mt-Park.GA.US>
X-Newsreader: TIN [version 1.1 PL6]
References: <1993Jan20.123122.12886@dd.dk>
Lines: 28