add preprocessor to hide unused functions
[folly.git] / folly / io / Compression.cpp
index ab0ee5a0719bff6e5aea2bb393be22f2978305e6..9425f98f278c69595380b575ce7723272b99829d 100644 (file)
@@ -148,6 +148,8 @@ std::unique_ptr<IOBuf> NoCompressionCodec::doUncompress(
   return data->clone();
 }
 
+#if (FOLLY_HAVE_LIBLZ4 || FOLLY_HAVE_LIBLZMA)
+
 namespace {
 
 void encodeVarintToIOBuf(uint64_t val, folly::IOBuf* out) {
@@ -173,6 +175,8 @@ inline uint64_t decodeVarintFromCursor(folly::io::Cursor& cursor) {
 
 }  // namespace
 
+#endif  // FOLLY_HAVE_LIBLZ4 || FOLLY_HAVE_LIBLZMA
+
 #if FOLLY_HAVE_LIBLZ4
 
 /**