From 2e159d9d0c06b9e5e16e5e1e15103f461761237c Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Fri, 14 Jul 2023 15:32:19 -0400 Subject: [PATCH] gccrs: Add include guard for rust-gcc.h gcc/rust/ChangeLog: * rust-gcc.h: Add include guard. Signed-off-by: Owen Avery --- gcc/rust/rust-gcc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/rust/rust-gcc.h b/gcc/rust/rust-gcc.h index dc4cc2634c33..79494f74cde1 100644 --- a/gcc/rust/rust-gcc.h +++ b/gcc/rust/rust-gcc.h @@ -22,6 +22,9 @@ // This has to be included outside of extern "C", so we have to // include it here before tree.h includes it later. +#ifndef RUST_GCC +#define RUST_GCC + #include "rust-location.h" // Bvariable is a bit more complicated, because of zero-sized types. @@ -50,3 +53,5 @@ private: tree t_; tree orig_type_; }; + +#endif // RUST_GCC -- 2.47.2