]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add header guards
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 6 Aug 2025 09:17:21 +0000 (11:17 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:36 +0000 (20:58 +0100)
gcc/rust/ChangeLog:

* util/rust-lang-item.h (RUST_LANG_ITEM_H): Add header guards.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-lang-item.h

index 67a5d9c438f831a8217ddde2664d7f3acbaf9741..7b9f498a5658a3ab2bac98af5484d7bf3c6bbb34 100644 (file)
@@ -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