www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/02/01/07:00:26

From: <ams AT ludd DOT luth DOT se>
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
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

According to Eli Zaretskii:
> > From: Martin Stromberg <eplmst AT epl DOT ericsson DOT se>
> > 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019