summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-05-29 19:21:14 (GMT)
committerYann Collet <cyan@fb.com>2019-05-29 19:21:14 (GMT)
commit444550defad26bcbe2e62209badbba76e803e521 (patch)
tree25e5f69deb29eaf3d17d3119430c2aac539e3d9a /lib/lz4hc.h
parentb17f578a919b7e6b078cede2d52be29dd48c8e8c (diff)
downloadlz4-444550defad26bcbe2e62209badbba76e803e521.zip
lz4-444550defad26bcbe2e62209badbba76e803e521.tar.gz
lz4-444550defad26bcbe2e62209badbba76e803e521.tar.bz2
ensure lz4.h can be included with or without LZ4_STATIC_LINKING_ONLY in any order
ensure correct propagation of LZ4_DISTANCE_MAX
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r--lib/lz4hc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h
index cdc6d89..44e35bb 100644
--- a/lib/lz4hc.h
+++ b/lib/lz4hc.h
@@ -336,6 +336,9 @@ LZ4LIB_API void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionL
#ifndef LZ4_HC_SLO_098092834
#define LZ4_HC_SLO_098092834
+#define LZ4_STATIC_LINKING_ONLY /* LZ4LIB_STATIC_API */
+#include "lz4.h"
+
#if defined (__cplusplus)
extern "C" {
#endif