Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E3C59DB.9F480DF7@phekda.freeserve.co.uk> Date: Sat, 01 Feb 2003 23:35:55 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: restrict References: <200302011404 DOT h11E4rb15460 AT speedy DOT ludd DOT luth DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. ams AT ludd DOT luth DOT se wrote: > > Hello. > > We have a problem. gcc only recognise "restrict" if "-std=c99" is > given on the command line. Perhaps we should add that flag to gcc.opt? > So we'll need some macro or some way knowing when c99 is in > effect. Alas I can't find one. I've been looking at the verbose output > from gcc. > > Any ideas? C99 standard, section 6.10.8: "Predefined macro names" includes: __STDC_VERSION__ The integer constant 199901L. It says in the footnote that the previous version was 199409L. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]