From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8685f6805bc333ba X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: Removing readonly extension in cc Date: 1998/08/25 Message-ID: <35E312C7.38C81153@zk3.dec.com>#1/1 X-Deja-AN: 384657148 Content-Transfer-Encoding: 7bit References: <6rt1gb$cig$1@towncrier.cc.monash.edu.au> Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Jonathan Giddy wrote: > > I want to compile a C package with the -std flag set to get relaxed ANSI > style enforcement. However, the package uses a struct with an attribute > named "readonly". Seems this is a reserved keyword when using -std. > > Is there anyway to turn these extension keywords off? I assume that you are compiling on V4.0 through V4.0C, since the compiler has been fixed to allow this in -std mode for Digital UNIX versions starting with V4.0D (and later). You could try compiling in -std1 (Strict ANSI) mode. It should be accepted for all versions of DEC C on UNIX. If you have further questions, let me know. -Jeff -- Jeff Sullivan | Compaq Computer Corp | jps@zk3.dec.com DEC C and C++ | Nashua, NH ZK3-2/2X29 | sullivan@zko.dec.com