From: W. Felix Handte Date: Tue, 22 May 2018 01:43:54 +0000 (-0400) Subject: Add `extern "C"` Guards Around Experimental HC Declarations X-Git-Tag: upstream/1.9.3~7^2~16^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4248a9bfc0a391438f18e62525568358253623c7;p=platform%2Fupstream%2Flz4.git Add `extern "C"` Guards Around Experimental HC Declarations --- diff --git a/lib/lz4hc.h b/lib/lz4hc.h index bb5e073..970fa39 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -246,6 +246,10 @@ LZ4_DEPRECATED("use LZ4_resetStreamHC() instead") LZ4LIB_API int LZ4_resetStr #ifndef LZ4_HC_SLO_098092834 #define LZ4_HC_SLO_098092834 +#if defined (__cplusplus) +extern "C" { +#endif + /*! LZ4_compress_HC_destSize() : v1.8.0 (experimental) * Will try to compress as much data from `src` as possible * that can fit into `targetDstSize` budget. @@ -343,5 +347,9 @@ int LZ4_compress_HC_extStateHC_fastReset (void* state, const char* src, char* ds */ LZ4LIB_API void LZ4_attach_HC_dictionary(LZ4_streamHC_t *working_stream, const LZ4_streamHC_t *dictionary_stream); +#if defined (__cplusplus) +} +#endif + #endif /* LZ4_HC_SLO_098092834 */ #endif /* LZ4_HC_STATIC_LINKING_ONLY */