aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg-op.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-11-08 12:52:56 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-11-08 15:15:32 +0000
commita7ce790a029bd94eb320d8c69f38900f5233997e (patch)
tree9ff2ee24d6a5a8d20b2982b151052509fcd9d6d6 /tcg/tcg-op.h
parent7360be896a928d9c75894f34e8e620b82bbc1676 (diff)
downloadqemu-a7ce790a029bd94eb320d8c69f38900f5233997e.zip
qemu-a7ce790a029bd94eb320d8c69f38900f5233997e.tar.gz
qemu-a7ce790a029bd94eb320d8c69f38900f5233997e.tar.bz2
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.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20181108125256.30986-1-peter.maydell@linaro.org
Diffstat (limited to 'tcg/tcg-op.h')
-rw-r--r--tcg/tcg-op.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index 7513c1e..db4e918 100644
--- a/tcg/tcg-op.h
+++ b/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"
@@ -1267,3 +1270,5 @@ static inline void tcg_gen_trunc_ptr_i32(TCGv_i32 r, TCGv_ptr a)
#undef PTR
#undef NAT
+
+#endif /* TCG_TCG_OP_H */