https://gcc.gnu.org/g:eb91a0a3fb72039bce6523b345cb39ebcca52a17

commit r16-4766-geb91a0a3fb72039bce6523b345cb39ebcca52a17
Author: Pierre-Emmanuel Patry <[email protected]>
Date:   Wed Aug 6 11:17:21 2025 +0200

    gccrs: Add header guards
    
    gcc/rust/ChangeLog:
    
            * util/rust-lang-item.h (RUST_LANG_ITEM_H): Add header guards.
    
    Signed-off-by: Pierre-Emmanuel Patry <[email protected]>

Diff:
---
 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 67a5d9c438f8..7b9f498a5658 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

Reply via email to