delorie.com/archives/browse.cgi | search |
From: | Martin Str|mberg <ams AT ludd DOT luth DOT se> |
Message-Id: | <200004252025.WAA07905@father.ludd.luth.se> |
Subject: | Re: restrict |
In-Reply-To: | <Pine.SUN.3.91.1000424084439.12476I-100000@is> from Eli Zaretskii at "Apr 24, 2000 08:44:59 am" |
To: | djgpp-workers AT delorie DOT com |
Date: | Tue, 25 Apr 2000 22:25:01 +0200 (MET DST) |
Cc: | eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) |
X-Mailer: | ELM [version 2.4ME+ PL54 (25)] |
MIME-Version: | 1.0 |
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 |
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? How should it look to support gcc 3.x? #if __STDC_VERSION__ >= 199901 #elif ( ( __GNUC__ >= 2 && __GNUC_MINOR__ >= 91 ) || ( __GNUC__ >= 3 ) ) ... ? Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |