From: Sam James Date: Mon, 15 Apr 2024 04:53:56 +0000 (+0100) Subject: liblzma: easy_preset: add header guard X-Git-Tag: v5.7.1alpha~371 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55dcae3056d95cb2ddb8b560c12ba7596bc79f2c;p=thirdparty%2Fxz.git liblzma: easy_preset: add header guard Reported by github's codeql. --- diff --git a/src/liblzma/common/easy_preset.h b/src/liblzma/common/easy_preset.h index d0ca1a62..4ef6d044 100644 --- a/src/liblzma/common/easy_preset.h +++ b/src/liblzma/common/easy_preset.h @@ -9,6 +9,9 @@ // /////////////////////////////////////////////////////////////////////////////// +#ifndef LZMA_EASY_PRESET_H +#define LZMA_EASY_PRESET_H + #include "common.h" @@ -29,3 +32,5 @@ typedef struct { /// Set *easy to the settings given by the preset. Returns true on error, /// false on success. extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset); + +#endif