From: Martin Str|mberg Message-Id: <200004252025.WAA07905@father.ludd.luth.se> Subject: Re: restrict In-Reply-To: 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 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: > 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