]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add include guard for rust-gcc.h
authorOwen Avery <powerboat9.gamer@gmail.com>
Fri, 14 Jul 2023 19:32:19 +0000 (15:32 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:37 +0000 (18:49 +0100)
gcc/rust/ChangeLog:

* rust-gcc.h: Add include guard.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/rust-gcc.h

index dc4cc2634c33c108bbe919f0fb9d059ce66f0377..79494f74cde15966457824a580493e3184b0acec 100644 (file)
@@ -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