From: Message-Id: <200302011200.h11C0HU14104@speedy.ludd.luth.se> Subject: restrict In-Reply-To: <7458-Sun19Jan2003193322+0200-eliz@is.elta.co.il> "from Eli Zaretskii at Jan 19, 2003 07:33:22 pm" To: djgpp-workers AT delorie DOT com Date: Sat, 1 Feb 2003 13:00:16 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamScore: s 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 Stromberg > > Date: Sun, 19 Jan 2003 17:11:36 +0100 (MET) > > > > How about compatibility with earlier gccs? > > I think we shouldn't break older compilers: people are still using > them (and for good reasons IMHO). > > > Add soemthing like > > "#if GCC_VERSION < X > > #define restrict > > #endif" > > Yes, that's the idea. > > > Where if so? > > How about version.h? It's always #includ'ed by default. Here's what I've added: #if __GNUC < 3 #define restrict #endif I'm using GCC 2.95.3. That's the latest < 3 version, right? That if might need to be adjusted. When did GCC start to support restrict? Anyone know? Right, MartinS