summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-06 10:46:01 (GMT)
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-06 10:46:01 (GMT)
commite1276aebe2736af82f0022196a62ae7a9050a0c4 (patch)
treedaa0620f08d30976b118107e4173375c62331fbf
parentd9e0741aee5ef902c4a4b0ca42167f9b19734e69 (diff)
downloadlz4-e1276aebe2736af82f0022196a62ae7a9050a0c4.zip
lz4-e1276aebe2736af82f0022196a62ae7a9050a0c4.tar.gz
lz4-e1276aebe2736af82f0022196a62ae7a9050a0c4.tar.bz2
Fix: Disable prototypes in header file
-rw-r--r--lib/lz4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index fee8890..7c37ab3 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -281,8 +281,10 @@ LZ4LIB_API int LZ4_decompress_safe_partial (const char* src, char* dst, int srcS
***********************************************/
typedef union LZ4_stream_u LZ4_stream_t; /* incomplete type (defined later) */
+#if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
LZ4LIB_API LZ4_stream_t* LZ4_createStream(void);
LZ4LIB_API int LZ4_freeStream (LZ4_stream_t* streamPtr);
+#endif /* !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION) */
/*! LZ4_resetStream_fast() : v1.9.0+
* Use this to prepare an LZ4_stream_t for a new chain of dependent blocks
@@ -366,8 +368,10 @@ typedef union LZ4_streamDecode_u LZ4_streamDecode_t; /* tracking context */
* creation / destruction of streaming decompression tracking context.
* A tracking context can be re-used multiple times.
*/
+#if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
LZ4LIB_API LZ4_streamDecode_t* LZ4_createStreamDecode(void);
LZ4LIB_API int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream);
+#endif /* !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION) */
/*! LZ4_setStreamDecode() :
* An LZ4_streamDecode_t context can be allocated once and re-used multiple times.