aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-11 17:15:25 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-11 17:16:19 +0200
commit454f567e58bbadea5cff4f31ef450c1305e9853d (patch)
tree6b4afda5b6eefaf6c26a7f2ec884dbb3faa14bda
parentliblzma: Fix incorrect #ifdef for x86 SSE2 support. (diff)
downloadxz-454f567e58bbadea5cff4f31ef450c1305e9853d.tar.xz
liblzma: Fix building with Intel ICC (the classic compiler).
It claims __GNUC__ >= 10 but doesn't support __symver__ attribute. Thanks to Stephen Sachs.
-rw-r--r--src/liblzma/common/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h
index 6b659c66..33928c3d 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