From: Martin Str|mberg Message-Id: <200005012226.AAA20494@father.ludd.luth.se> Subject: Re: restrict In-Reply-To: <200004262019.QAA24216@indy.delorie.com> from Eli Zaretskii at "Apr 26, 2000 04:19:16 pm" To: djgpp-workers AT delorie DOT com Date: Tue, 2 May 2000 00:26:48 +0200 (MET DST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 According to Eli Zaretskii: > > From: Martin Str|mberg > > Date: Tue, 25 Apr 2000 22:25:01 +0200 (MET DST) > > > > According to Eli Zaretskii: > > > I suggest the following: > > > > > > #if __STDC_VERSION__ >= 199901 > > > #elif __GNUC__ >= 2 && __GNUC_MINOR__ >= 91 > > > #define restrict __restrict__ > > > #else > > > #define restrict > > > #endif > > > > Two questions: > > > > Where does __STDC_VERSION__ come from? > > I think it should come from the compiler. No? Why isn't it seen like the #define __DJGPP__ when using "-v" option of gcc? Genesis, Selling England by the Pound, MartinS