From: Yann Collet Date: Wed, 24 Oct 2018 00:55:23 +0000 (-0700) Subject: added simple guard macros X-Git-Tag: v1.3.8~66^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3612e1c5e53d45be2291012ac1eb77d3a24ec0;p=thirdparty%2Fzstd.git added simple guard macros in case of accidental multi-includes --- diff --git a/lib/decompress/zstd_ddict.h b/lib/decompress/zstd_ddict.h index 01449d291..87bbbca6e 100644 --- a/lib/decompress/zstd_ddict.h +++ b/lib/decompress/zstd_ddict.h @@ -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 /* 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 */ diff --git a/lib/decompress/zstd_decompress_internal.h b/lib/decompress/zstd_decompress_internal.h index f450b3dcf..3de8e4e7d 100644 --- a/lib/decompress/zstd_decompress_internal.h +++ b/lib/decompress/zstd_decompress_internal.h @@ -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 */