[FFmpeg-devel] ICC version checks

Måns Rullgård mans
Mon Mar 8 23:32:36 CET 2010


In quite a few places in our code we have lines like this:

#if (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(4,3)

I'm struggling to understand the purpose of this construct.  If the
compiler is not icc, this checks the gcc version the compiler claims
to be compatible with.  If the compiler is icc, the test passes only
if both the claimed gcc compatibility is high enough AND icc is new
enough.

Do previous icc versions lie about the gcc compatibility?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list