diff options
author | Yann Collet <cyan@fb.com> | 2017-03-17 22:11:09 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-03-17 22:11:09 (GMT) |
commit | 0d073d4d287b08659eada92c614bec30fa277cd0 (patch) | |
tree | f756c99a749ef48bea1ae6e4d4c69a87f3001248 /lib/lz4.h | |
parent | aae447fffd3c5afd95a94c56ea70c349edad1ebd (diff) | |
download | lz4-0d073d4d287b08659eada92c614bec30fa277cd0.zip lz4-0d073d4d287b08659eada92c614bec30fa277cd0.tar.gz lz4-0d073d4d287b08659eada92c614bec30fa277cd0.tar.bz2 |
added `extern C` for lz4.h static section
should make the file more compatible with C++ compiler, such as Visual or g++
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -32,13 +32,13 @@ - LZ4 homepage : http://www.lz4.org - LZ4 source repository : https://github.com/lz4/lz4 */ -#ifndef LZ4_H_2983827168210 -#define LZ4_H_2983827168210 - #if defined (__cplusplus) extern "C" { #endif +#ifndef LZ4_H_2983827168210 +#define LZ4_H_2983827168210 + /* --- Dependency --- */ #include <stddef.h> /* size_t */ @@ -456,9 +456,8 @@ LZ4LIB_API LZ4_DEPRECATED("use LZ4_saveDict() instead") char* LZ4_slideInput LZ4LIB_API LZ4_DEPRECATED("use LZ4_decompress_safe_usingDict() instead") int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); LZ4LIB_API LZ4_DEPRECATED("use LZ4_decompress_fast_usingDict() instead") int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); +#endif /* LZ4_H_2983827168210 */ #if defined (__cplusplus) } #endif - -#endif /* LZ4_H_2983827168210 */ |