From e0c1b3403c24796292a7c2e9811a41e887d08697 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 12 Nov 2018 01:11:26 +0100 Subject: [PATCH] add header guards to ConvertUTP.h and fixedint.h --- ed25519/src/fixedint.h | 4 ++++ include/libtorrent/ConvertUTF.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ed25519/src/fixedint.h b/ed25519/src/fixedint.h index 28e4dc17a..abb5a37a4 100644 --- a/ed25519/src/fixedint.h +++ b/ed25519/src/fixedint.h @@ -1,6 +1,10 @@ +#ifndef FIXEDINT_H_INCLUDED +#define FIXEDINT_H_INCLUDED + #include typedef std::uint64_t u64; typedef std::int64_t i64; typedef std::int32_t i32; +#endif diff --git a/include/libtorrent/ConvertUTF.h b/include/libtorrent/ConvertUTF.h index 226663dfb..d3f94f44e 100644 --- a/include/libtorrent/ConvertUTF.h +++ b/include/libtorrent/ConvertUTF.h @@ -79,6 +79,9 @@ ------------------------------------------------------------------------ */ +#ifndef CONVERT_UTF_H_INCLUDED +#define CONVERT_UTF_H_INCLUDED + #include "libtorrent/config.hpp" #include using UTF32 = std::uint32_t; @@ -141,3 +144,5 @@ extern const UTF32 offsetsFromUTF8[6]; } /* --------------------------------------------------------------------- */ + +#endif // CONVERT_UTF_H_INCLUDED