]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix building with Intel ICC (the classic compiler).
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 11 Nov 2022 15:15:25 +0000 (17:15 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 11 Nov 2022 15:16:19 +0000 (17:16 +0200)
It claims __GNUC__ >= 10 but doesn't support __symver__ attribute.

Thanks to Stephen Sachs.

src/liblzma/common/common.h

index 6b659c661006d28a1eb45f538b3cc70d80aacf6b..33928c3d2b339128176857f7725879648d758f69 100644 (file)
@@ -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