• Martin Storsjö's avatar
    libavutil: Always use some GCC style attributes on clang · f637046d
    Martin Storsjö authored
    Clang normally disguises as GCC (defining __GNUC__), and thus get
    all the normal GCC specific attributes.
    
    Clang can also work as a drop-in replacement for MSVC, and in these
    cases, it doesn't define __GNUC__, but defines _MSC_VER instead.
    
    Even in these setups, it still supports the GCC style attributes,
    thus use them, especially where there isn't any MSVC specific
    version, or where the MSVC specific version doesn't work on clang
    (for DECLARE_ASM_CONST).
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    f637046d
attributes.h 3.25 KB