X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Tue, 04 Jan 2005 17:16:57 -0700 From: Brian Inglis Subject: Re: restrict keyword In-reply-to: <200501010100.j0110Pn3018964@speedy.ludd.ltu.se> To: djgpp-workers AT delorie DOT com Message-id: Organization: Systematic Software MIME-version: 1.0 X-Mailer: Forte Agent 1.93/32.576 English (American) Content-type: text/plain; charset=us-ascii References: <200501010100 DOT j0110Pn3018964 AT speedy DOT ludd DOT ltu DOT se> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j050H3GC019045 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 01 Jan 2005 02:00:25 +0100 (CET), ams AT ludd DOT ltu DOT se wrote: >Happy New Year! > >According to Brian Inglis: >> On Fri, 31 Dec 2004 15:51:11 +0100 (CET), ams AT ludd DOT ltu DOT se wrote: >> >> >+#if __GNUC__ < 3 /* || (__GNUC__ == 3 && __GNUC_MINOR__ < 1)*/ >> >+#define restrict >> >+#endif >> >> We really don't want to do this as it could mess up the user's space. >... >> I'd suggest one or more underscores _restrict or _RESTRICT_ or >> __restrict__. > >Ok. So I replace all restrict with __restrict__ and change the >version entry to > >+#if __GNUC__ < 3 || __GNUC__ == 3 && __GNUC_MINOR__ < what!!!! >#define __restrict__ >else >#define __restrict__ restrict >#endif > >? ISTM you only need the null definition as gcc versions that support restrict allow __restrict__ regardless of the -std flags. -- Thanks. Take care, Brian Inglis