From: Pierre-Emmanuel Patry <[email protected]>
gcc/rust/ChangeLog:
* util/rust-lang-item.h (RUST_LANG_ITEM_H): Add header guards.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
gcc/rust/util/rust-lang-item.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h
index 67a5d9c438f..7b9f498a565 100644
--- a/gcc/rust/util/rust-lang-item.h
+++ b/gcc/rust/util/rust-lang-item.h
@@ -21,6 +21,9 @@
#include "optional.h"
#include "bi-map.h"
+#ifndef RUST_LANG_ITEM_H
+#define RUST_LANG_ITEM_H
+
namespace Rust {
class LangItem
@@ -185,3 +188,5 @@ template <> struct hash<Rust::LangItem::Kind>
}
};
} // namespace std
+
+#endif // RUST_LANG_ITEM_H
--
2.50.1