delorie.com/archives/browse.cgi | search |
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 <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Subject: | Re: restrict keyword |
In-reply-to: | <200501010100.j0110Pn3018964@speedy.ludd.ltu.se> |
To: | djgpp-workers AT delorie DOT com |
Message-id: | <q8cmt0p9e3ri4p17udh3lvk1gdrfoclb31@4ax.com> |
Organization: | Systematic Software |
MIME-version: | 1.0 |
X-Mailer: | Forte Agent 1.93/32.576 English (American) |
References: | <d0abt01prnghfmpqc88hooanh7q6ic04mc AT 4ax DOT com> |
<200501010100 DOT j0110Pn3018964 AT speedy DOT ludd DOT ltu DOT se> | |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |