Message-ID: <08a301c29c65$d04afb00$0600000a@broadpark.no> From: "Gisle Vanem" To: References: <04fd01c29ae1$30ba25a0$0600000a AT broadpark DOT no> Subject: Re: gcc 3.2.1 version Date: Thu, 5 Dec 2002 14:54:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit 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" 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