aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-14 15:32:19 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-07-17 09:38:29 +0000
commitea69361b3468e8ecb4bd1a329cc482a41dd5ac1a (patch)
treede818d154613691e02f985b8eca83939b7d99879
parent866512cbc09bc883ef844b2b6cb70a72335756a7 (diff)
downloadgcc-ea69361b3468e8ecb4bd1a329cc482a41dd5ac1a.zip
gcc-ea69361b3468e8ecb4bd1a329cc482a41dd5ac1a.tar.gz
gcc-ea69361b3468e8ecb4bd1a329cc482a41dd5ac1a.tar.bz2
Add include guard for rust-gcc.h
gcc/rust/ChangeLog: * rust-gcc.h: Add include guard. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
-rw-r--r--gcc/rust/rust-gcc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/rust-gcc.h b/gcc/rust/rust-gcc.h
index e0aa540..3f8ba03 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