Skip to content

Commit 3dada30

Browse files
P-E-Pphilberty
authored andcommitted
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]>
1 parent 9e079a8 commit 3dada30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gcc/rust/util/rust-lang-item.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#include "optional.h"
2222
#include "bi-map.h"
2323

24+
#ifndef RUST_LANG_ITEM_H
25+
#define RUST_LANG_ITEM_H
26+
2427
namespace Rust {
2528

2629
class LangItem
@@ -185,3 +188,5 @@ template <> struct hash<Rust::LangItem::Kind>
185188
}
186189
};
187190
} // namespace std
191+
192+
#endif // RUST_LANG_ITEM_H

0 commit comments

Comments
 (0)