liblzma: Add a note why crc_always_inline exists for now.

Solaris Studio is a possible example (not tested) which
supports the always_inline attribute but might not get
detected by the common.h #ifdefs.
This commit is contained in:
Lasse Collin 2023-10-30 18:09:53 +02:00
parent e7a86b94cd
commit 8c36ab79cb
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@
// If both __forceinline and inline are used, MSVC will issue a warning. // If both __forceinline and inline are used, MSVC will issue a warning.
// Since MSVC's keyword is a replacement keyword, the lzma_always_inline // Since MSVC's keyword is a replacement keyword, the lzma_always_inline
// macro must also contain the inline keyword when its not used in MSVC. // macro must also contain the inline keyword when its not used in MSVC.
//
// NOTE: This doesn't use lzma_always_inline for now as support for it is
// detected using preprocessor macros which might miss a compiler that
// does support it. All compilers that support the CLMUL code support
// the attribute too; if not, we will hopefully get a bug report.
#ifdef _MSC_VER #ifdef _MSC_VER
# define crc_always_inline __forceinline # define crc_always_inline __forceinline
#else #else