Skip to content

Commit

Permalink
Add include guard for rust-gcc.h
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* rust-gcc.h: Add include guard.

Signed-off-by: Owen Avery <[email protected]>
  • Loading branch information
powerboat9 authored and philberty committed Jul 17, 2023
1 parent 866512c commit ea69361
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/rust/rust-gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -50,3 +53,5 @@ class Bvariable
tree t_;
tree orig_type_;
};

#endif // RUST_GCC

0 comments on commit ea69361

Please sign in to comment.