diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-14 15:32:19 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:37 +0100 |
commit | 2e159d9d0c06b9e5e16e5e1e15103f461761237c (patch) | |
tree | 4b7641ddb221de5d4cb434df5acd09fec5a9c0e8 | |
parent | 93866b6a930170302778d23e034619c8f669547b (diff) | |
download | gcc-2e159d9d0c06b9e5e16e5e1e15103f461761237c.zip gcc-2e159d9d0c06b9e5e16e5e1e15103f461761237c.tar.gz gcc-2e159d9d0c06b9e5e16e5e1e15103f461761237c.tar.bz2 |
gccrs: 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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/rust-gcc.h b/gcc/rust/rust-gcc.h index dc4cc26..79494f7 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 |