瀏覽代碼

zstd: Fix trace compilation on AIX

Since zstd commit `6cee3c2c` ([trace] Remove default definitions of weak
symbols, 2021-04-26, v1.5.0^2~53^2), the weak symbol trace
implementation does not compile on AIX.  Disable it.
Brad King 4 年之前
父節點
當前提交
ddced0c6b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Utilities/cmzstd/lib/common/zstd_trace.h

+ 1 - 1
Utilities/cmzstd/lib/common/zstd_trace.h

@@ -20,7 +20,7 @@ extern "C" {
 /* weak symbol support */
 #if !defined(ZSTD_HAVE_WEAK_SYMBOLS) && defined(__GNUC__) && \
     !defined(__APPLE__) && !defined(_WIN32) && !defined(__MINGW32__) && \
-    !defined(__CYGWIN__)
+    !defined(__CYGWIN__) && !defined(_AIX)
 #  define ZSTD_HAVE_WEAK_SYMBOLS 1
 #else
 #  define ZSTD_HAVE_WEAK_SYMBOLS 0