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
+10 -3
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 */