From: Simon Marchi Date: Mon, 26 Mar 2018 19:31:10 +0000 (-0400) Subject: Add include guard to filename-seen-cache.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce1459e528772057d51a507fa0c2bb1c8cbdca97;p=binutils-gdb.git Add include guard to filename-seen-cache.h While moving things around, I stumbled on filename_seen_cache being re-defined, because filename-seen-cache.h doesn't have an include guard. gdb/ChangeLog: * filename-seen-cache.h: Add include guard. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6de315081fe..7952dee95c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-03-26 Simon Marchi + + * filename-seen-cache.h: Add include guard. + 2018-03-26 Keith Seitz * symfile.c (place_section): Remove "struct" from section_addr_info diff --git a/gdb/filename-seen-cache.h b/gdb/filename-seen-cache.h index a644b1a8087..6c8970090f5 100644 --- a/gdb/filename-seen-cache.h +++ b/gdb/filename-seen-cache.h @@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifndef FILENAME_SEEN_CACHE_H +#define FILENAME_SEEN_CACHE_H + #include "defs.h" #include "common/function-view.h" @@ -59,3 +62,5 @@ private: /* Table of files seen so far. */ htab_t m_tab; }; + +#endif /* FILENAME_SEEN_CACHE_H */