Fix zstd_internal.h for C++ mode

This commit is contained in:
Nick Terrell
2017-08-24 18:09:50 -07:00
parent 26dc040a7b
commit de6c6bce85
2 changed files with 9 additions and 2 deletions
+1 -2
View File
@@ -15,8 +15,7 @@
#include <stdlib.h> /* malloc, calloc, free */ #include <stdlib.h> /* malloc, calloc, free */
#include <string.h> /* memset */ #include <string.h> /* memset */
#include "error_private.h" #include "error_private.h"
#define ZSTD_STATIC_LINKING_ONLY #include "zstd_internal.h"
#include "zstd.h"
/*-**************************************** /*-****************************************
+8
View File
@@ -29,6 +29,11 @@
#include "xxhash.h" /* XXH_reset, update, digest */ #include "xxhash.h" /* XXH_reset, update, digest */
#if defined (__cplusplus)
extern "C" {
#endif
/*-************************************* /*-*************************************
* Debug * Debug
***************************************/ ***************************************/
@@ -334,5 +339,8 @@ typedef struct {
size_t ZSTD_getcBlockSize(const void* src, size_t srcSize, size_t ZSTD_getcBlockSize(const void* src, size_t srcSize,
blockProperties_t* bpPtr); blockProperties_t* bpPtr);
#if defined (__cplusplus)
}
#endif
#endif /* ZSTD_CCOMMON_H_MODULE */ #endif /* ZSTD_CCOMMON_H_MODULE */