]> git.sesse.net Git - ffmpeg/commit
libavutil: Hook up the rest of the gcc specific attributes to clang as well
authorMartin Storsjö <martin@martin.st>
Tue, 21 Mar 2017 12:36:33 +0000 (14:36 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 22 Mar 2017 12:25:45 +0000 (14:25 +0200)
commit8e2346154e6d58b733fd20326ce706f82fd91b3e
treebe0974a1770f5202678d903b2644f0c311b68783
parent3aa9c523e9cf4f4a5e239ac737281e096c884907
libavutil: Hook up the rest of the gcc specific attributes to clang as well

Hook up all attributes that don't have a MSVC specific version at the
moment.

See f637046d313 for details.

These don't seem to be critical for building with clang in MSVC mode
though, and thus haven't been hooked up until now.

These seem to build fine with as old clang as 3.3 at least.
(clang 3.3 disguises itself as gcc 4.2 normally, so all of these
have been used for clang before, except for av_cold.)

The clang version numbers themselves are useless for detecting what
attributes are available, since Apple's clang builds use a completely
different versioning (presenting itself as e.g. clang 8.0 instead
of 3.8).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/attributes.h