From 8ebd7039c4c46dfad9831ba4d70a2a5ea23f2f72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 29 Oct 2018 15:51:00 -0600 Subject: [PATCH] svga: Add missing include guards MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Janiszewski Reviewed-by: Brian Paul --- src/gallium/drivers/svga/include/svga3d_surfacedefs.h | 5 +++++ src/gallium/winsys/svga/drm/vmw_shader.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/gallium/drivers/svga/include/svga3d_surfacedefs.h b/src/gallium/drivers/svga/include/svga3d_surfacedefs.h index 9054e72207d..578b38dda78 100644 --- a/src/gallium/drivers/svga/include/svga3d_surfacedefs.h +++ b/src/gallium/drivers/svga/include/svga3d_surfacedefs.h @@ -31,6 +31,9 @@ * Surface/format/image helper code. */ +#ifndef SVGA3D_SURFACEDEFS_H +#define SVGA3D_SURFACEDEFS_H + #include "svga3d_reg.h" #define max_t(type, x, y) ((x) > (y) ? (x) : (y)) @@ -1145,3 +1148,5 @@ svga3dsurface_get_pixel_offset(SVGA3dSurfaceFormat format, x / bw * desc->bytes_per_block); return offset; } + +#endif diff --git a/src/gallium/winsys/svga/drm/vmw_shader.h b/src/gallium/winsys/svga/drm/vmw_shader.h index c9a3638bcc6..ae557bcc8e4 100644 --- a/src/gallium/winsys/svga/drm/vmw_shader.h +++ b/src/gallium/winsys/svga/drm/vmw_shader.h @@ -32,6 +32,7 @@ */ #ifndef VMW_SHADER_H_ +#define VMW_SHADER_H_ #include "pipe/p_compiler.h" #include "util/u_atomic.h" -- 2.30.2