diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-20 15:46:20 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:55:58 +0100 |
commit | 00f79c773bc247830b29b6cef02d89337123c167 (patch) | |
tree | fd76bc492d1b186461251ac5ee4c9bd3d27dd195 | |
parent | 5920e4b7579c664c17a07d126c7fb09f4d786849 (diff) | |
download | gcc-00f79c773bc247830b29b6cef02d89337123c167.zip gcc-00f79c773bc247830b29b6cef02d89337123c167.tar.gz gcc-00f79c773bc247830b29b6cef02d89337123c167.tar.bz2 |
gccrs: attribute: Add missing header guard
Missing header guard may cause infinitie include recursion.
gcc/rust/ChangeLog:
* util/rust-attributes.h (RUST_ATTRIBUTES_H): Add missing header
guard.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/util/rust-attributes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-attributes.h b/gcc/rust/util/rust-attributes.h index 1259d14..1989d41 100644 --- a/gcc/rust/util/rust-attributes.h +++ b/gcc/rust/util/rust-attributes.h @@ -15,6 +15,8 @@ // You should have received a copy of the GNU General Public License // along with GCC; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +#ifndef RUST_ATTRIBUTES_H +#define RUST_ATTRIBUTES_H #include "rust-ast.h" #include "rust-system.h" @@ -267,3 +269,5 @@ private: } // namespace Analysis } // namespace Rust + +#endif /* ! RUST_ATTRIBUTES_H */ |