[cfe-dev] Fwd: __VERSION__?

Anton Korobeynikov anton at korobeynikov.info
Tue Mar 24 09:18:07 PDT 2009


--------- Forwarded message ----------
From: रजनीश <rdogra at earthlink.net>
Date: 2009/3/24
Subject: Re: [cfe-dev] __VERSION__?
To: Anton Korobeynikov <anton at korobeynikov.info>


so __VERSION__ is suppose to show gcc compatibility version
but ffmpeg people are using it for actual compiler version.

can't the string contain any clang info may be like Safari browser sniff.

On Mar 24, 2009, at 12:26 AM, Anton Korobeynikov wrote:

>> Notice that ffmpeg shows gcc as the compiler instead of clang...
>
> That's definitely correct, see above
>
>
>> #ifdef __GNUC__
>>   fprintf(stderr, ", gcc: " __VERSION__ "\n");
>> #else
>>   fprintf(stderr, ", using a non-gcc compiler\n");
>> #endif
>
> And you even show this by yourself!
>
> ---
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>




More information about the cfe-dev mailing list