svga: Add missing include guards
authorMichał Janiszewski <janisozaur+signed@gmail.com>
Mon, 29 Oct 2018 21:51:00 +0000 (15:51 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Oct 2018 12:19:09 +0000 (06:19 -0600)
Signed-off-by: Michał Janiszewski <janisozaur+signed@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/include/svga3d_surfacedefs.h
src/gallium/winsys/svga/drm/vmw_shader.h

index 9054e72207dc798b775d3582b3ce05657ccb0306..578b38dda78643e1fd76ba93838ae881a903b82b 100644 (file)
@@ -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
index c9a3638bcc6c1e6282e733f70a4ccef32da959ed..ae557bcc8e478d365bbe444f4bcea104be465330 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #ifndef VMW_SHADER_H_
+#define VMW_SHADER_H_
 
 #include "pipe/p_compiler.h"
 #include "util/u_atomic.h"