added simple guard macros

in case of accidental multi-includes
This commit is contained in:
Yann Collet 2018-10-23 17:55:23 -07:00
parent 2f7e1c8737
commit cc3612e1c5
2 changed files with 16 additions and 3 deletions

View File

@ -8,7 +8,11 @@
* You may select, at your option, one of the above-listed licenses.
*/
/*-*******************************************************
#ifndef ZSTD_DDICT_H
#define ZSTD_DDICT_H
/*-*******************************************************
* Dependencies
*********************************************************/
#include <stddef.h> /* size_t */
@ -16,10 +20,13 @@
/*-*******************************************************
* Interface
*********************************************************/
* Interface
*********************************************************/
const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
#endif /* ZSTD_DDICT_H */

View File

@ -12,6 +12,9 @@
/* zstd_decompress_internal:
* objects and definitions shared within lib/decompress modules */
#ifndef ZSTD_DECOMPRESS_INTERNAL_H
#define ZSTD_DECOMPRESS_INTERNAL_H
/*-*******************************************************
* Dependencies
@ -115,3 +118,6 @@ struct ZSTD_DCtx_s
* @return : size of entropy tables read */
size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy,
const void* const dict, size_t const dictSize);
#endif /* ZSTD_DECOMPRESS_INTERNAL_H */