diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-20 15:46:20 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-07-21 09:06:09 +0000 |
commit | 224409f746f0fe48101c76745e6eee61230ab98a (patch) | |
tree | 6ab2fb204f76129c06f976f9c49e4ed710856aca | |
parent | dd4c38042c88ec484794678e82d105e06b60502b (diff) | |
download | gcc-224409f746f0fe48101c76745e6eee61230ab98a.zip gcc-224409f746f0fe48101c76745e6eee61230ab98a.tar.gz gcc-224409f746f0fe48101c76745e6eee61230ab98a.tar.bz2 |
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 806ea78..b3b2806 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 */ |