From: Lasse Collin Date: Fri, 11 Nov 2022 15:15:25 +0000 (+0200) Subject: liblzma: Fix building with Intel ICC (the classic compiler). X-Git-Tag: v5.3.4alpha~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a39961ef211e1bf030b17edeea3cff29fe263b67;p=thirdparty%2Fxz.git liblzma: Fix building with Intel ICC (the classic compiler). It claims __GNUC__ >= 10 but doesn't support __symver__ attribute. Thanks to Stephen Sachs. --- diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h index 4783e45d..1ca536be 100644 --- a/src/liblzma/common/common.h +++ b/src/liblzma/common/common.h @@ -51,7 +51,7 @@ // since 2000). When using @@ instead of @@@, the internal name must not be // the same as the external name to avoid problems in some situations. This // is why "#define foo_52 foo" is needed for the default symbol versions. -# if TUKLIB_GNUC_REQ(10, 0) +# if TUKLIB_GNUC_REQ(10, 0) && !defined(__INTEL_COMPILER) # define LZMA_SYMVER_API(extnamever, type, intname) \ extern __attribute__((__symver__(extnamever))) \ LZMA_API(type) intname