From 78906db067e161d2e25f37f1f882e7d439f5206d Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Sun, 11 Nov 2018 08:51:38 -0500 Subject: [PATCH] tcg/tcg-op.h: Add multiple include guard The tcg-op.h header was missing the usual guard against multiple inclusion; add it. (Spotted by lgtm.com's static analyzer.) Backports commit a7ce790a029bd94eb320d8c69f38900f5233997e from qemu --- qemu/tcg/tcg-op.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qemu/tcg/tcg-op.h b/qemu/tcg/tcg-op.h index 0fa9f443..0aefa047 100644 --- a/qemu/tcg/tcg-op.h +++ b/qemu/tcg/tcg-op.h @@ -22,6 +22,9 @@ * THE SOFTWARE. */ +#ifndef TCG_TCG_OP_H +#define TCG_TCG_OP_H + #include "tcg.h" #include "exec/helper-proto.h" #include "exec/helper-gen.h" @@ -1275,3 +1278,5 @@ static inline void tcg_gen_trunc_ptr_i32(TCGContext *s, TCGv_i32 r, TCGv_ptr a) #undef PTR #undef NAT + +#endif /* TCG_TCG_OP_H */