aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-03-05 18:11:47 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-03-05 18:11:47 +0000
commit8c27c5541e95164a37ac1beb7bd4ef43429aed55 (patch)
tree19d62cc4239be95baae56a75f2d7275c55b61163 /contrib/llvm-project/llvm/lib/Support/Compression.cpp
parent69660011c6637bc32c9b5ff25f285de3e1209225 (diff)
parentd652fd2996ce31dfd35dd2a9c58bf051ca7fff44 (diff)
Notes
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/Compression.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/Support/Compression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/Compression.cpp b/contrib/llvm-project/llvm/lib/Support/Compression.cpp
index 4165a2740cd0..97d5ffaadf82 100644
--- a/contrib/llvm-project/llvm/lib/Support/Compression.cpp
+++ b/contrib/llvm-project/llvm/lib/Support/Compression.cpp
@@ -17,13 +17,13 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
-#if LLVM_ENABLE_ZLIB
+#if LLVM_ENABLE_ZLIB == 1 && HAVE_ZLIB_H
#include <zlib.h>
#endif
using namespace llvm;
-#if LLVM_ENABLE_ZLIB
+#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ
static Error createError(StringRef Err) {
return make_error<StringError>(Err, inconvertibleErrorCode());
}