summaryrefslogtreecommitdiff
path: root/gdb/filename-seen-cache.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-03-26 15:31:10 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-03-26 15:31:11 -0400
commitce1459e528772057d51a507fa0c2bb1c8cbdca97 (patch)
tree30f5ab4f4a7a8d7d48f47cb5b2d757d310933284 /gdb/filename-seen-cache.h
parent0b7a4aa6ba5a144b7ce616e80e95d9ff944fec2e (diff)
downloadbinutils-gdb-ce1459e528772057d51a507fa0c2bb1c8cbdca97.tar.gz
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.
Diffstat (limited to 'gdb/filename-seen-cache.h')
-rw-r--r--gdb/filename-seen-cache.h5
1 files changed, 5 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */
+#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 */