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

View File

@ -15,8 +15,7 @@
#include <stdlib.h> /* malloc, calloc, free */
#include <string.h> /* memset */
#include "error_private.h"
#define ZSTD_STATIC_LINKING_ONLY
#include "zstd.h"
#include "zstd_internal.h"
/*-****************************************

View File

@ -29,6 +29,11 @@
#include "xxhash.h" /* XXH_reset, update, digest */
#if defined (__cplusplus)
extern "C" {
#endif
/*-*************************************
* Debug
***************************************/
@ -334,5 +339,8 @@ typedef struct {
size_t ZSTD_getcBlockSize(const void* src, size_t srcSize,
blockProperties_t* bpPtr);
#if defined (__cplusplus)
}
#endif
#endif /* ZSTD_CCOMMON_H_MODULE */