tcg/tcg-op.h: Add multiple include guard
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Nov 2018 12:52:56 +0000 (12:52 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Nov 2018 15:15:32 +0000 (15:15 +0000)
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

tcg/tcg-op.h

index 7513c1eb7c5336e43b3f3bcc83f3ba452dfe7d81..db4e9188f428d0a3565d81cf603ab8d33e9a9871 100644 (file)
@@ -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 */