delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/05/08:54:38

Message-ID: <08a301c29c65$d04afb00$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: <djgpp AT delorie DOT com>
References: <04fd01c29ae1$30ba25a0$0600000a AT broadpark DOT no> <asnkci$21j$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Subject: Re: gcc 3.2.1 version
Date: Thu, 5 Dec 2002 14:54:21 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Reply-To: djgpp AT delorie DOT com

"Hans-Bernhard Broeker" <broeker AT physik DOT rwth-aachen DOT de> said:
> 
> > This little program prints "gcc 3.2", not "gcc 3.2.1" as I would expect.
> 
> >   p += sprintf (p, "gcc %d.%d", __GNUC__, __GNUC_MINOR__);
> 
> >   #if defined(__GNUC_PATCHLEVEL)
> >   p += sprintf (p, ".%d", __GNUC_PATCHLEVEL);
> >   #endif
> 
> This strikes me as a strange mixup of macro names you're using.  Since
> you're already referring to __GNUC__ and __GNUC_MINOR__, the name for
> the patchlevel macro should obvsiously be __GNUC_PATCHLEVEL__ (with
> two __ at the end), too.

Ah yes, you're right. It's __GNUC_PATCHLEVEL__.

--gv

- Raw text -


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