summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-03-17 22:11:09 (GMT)
committerYann Collet <cyan@fb.com>2017-03-17 22:11:09 (GMT)
commit0d073d4d287b08659eada92c614bec30fa277cd0 (patch)
treef756c99a749ef48bea1ae6e4d4c69a87f3001248 /lib/lz4frame.h
parentaae447fffd3c5afd95a94c56ea70c349edad1ebd (diff)
downloadlz4-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/lz4frame.h')
-rw-r--r--lib/lz4frame.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index 7b750b6..c1acba5 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -57,15 +57,14 @@ extern "C" {
of encoding standard metadata alongside LZ4-compressed blocks.
*/
-/*^***************************************************************
-* Compiler specifics
-*****************************************************************/
-/*
-* LZ4_DLL_EXPORT :
-* Enable exporting of functions when building a Windows DLL
-* LZ4FLIB_API :
-* Control library symbols visibility.
-*/
+/*-***************************************************************
+ * Compiler specifics
+ *****************************************************************/
+/* LZ4_DLL_EXPORT :
+ * Enable exporting of functions when building a Windows DLL
+ * LZ4FLIB_API :
+ * Control library symbols visibility.
+ */
#if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
# define LZ4FLIB_API __declspec(dllexport)
#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
@@ -86,8 +85,8 @@ extern "C" {
/*-************************************
-* Error management
-**************************************/
+ * Error management
+ **************************************/
typedef size_t LZ4F_errorCode_t;
LZ4FLIB_API unsigned LZ4F_isError(LZ4F_errorCode_t code); /**< tells if a `LZ4F_errorCode_t` function result is an error code */
@@ -207,7 +206,7 @@ typedef struct {
unsigned reserved[3];
} LZ4F_compressOptions_t;
-/* Resource Management */
+/*--- Resource Management ---*/
#define LZ4F_VERSION 100
LZ4FLIB_API unsigned LZ4F_getVersion(void);
@@ -223,7 +222,7 @@ LZ4FLIB_API LZ4F_errorCode_t LZ4F_createCompressionContext(LZ4F_cctx** cctxPtr,
LZ4FLIB_API LZ4F_errorCode_t LZ4F_freeCompressionContext(LZ4F_cctx* cctx);
-/* Compression */
+/*---- Compression ----*/
#define LZ4F_HEADER_SIZE_MAX 15
/*! LZ4F_compressBegin() :