mesa: 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:10 +0000 (06:19 -0600)
Signed-off-by: Michał Janiszewski <janisozaur+signed@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texcompress_bptc_tmp.h
src/mesa/main/texcompress_s3tc_tmp.h
src/mesa/state_tracker/st_glsl_to_tgsi.h
src/mesa/state_tracker/st_shader_cache.h

index 3c4ea2c01316c071ef7f840912a03504917474a1..90837d6af3a5251e34aa224d53a1f27b8f13d21b 100644 (file)
@@ -25,6 +25,9 @@
  * Included by texcompress_bptc and gallium to define BPTC decoding routines.
  */
 
+#ifndef TEXCOMPRESS_BPTC_TMP_H
+#define TEXCOMPRESS_BPTC_TMP_H
+
 #include "util/format_srgb.h"
 #include "util/half_float.h"
 #include "macros.h"
@@ -1741,3 +1744,5 @@ compress_rgb_float(int width, int height,
       dst += dst_row_diff;
    }
 }
+
+#endif
index 92316a74dd0aa144a37b31badade0e7696007fc2..dbf8c871b7ab66ecc0f5a684cd1bd8f34968d76d 100644 (file)
@@ -22,6 +22,9 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#ifndef TEXCOMPRESS_S3TC_TMP_H
+#define TEXCOMPRESS_S3TC_TMP_H
+
 #ifdef __APPLE__
 #include <OpenGL/gl.h>
 #else
@@ -987,3 +990,5 @@ static void tx_compress_dxtn(GLint srccomps, GLint width, GLint height, const GL
       return;
    }
 }
+
+#endif
index 8ccfff9bd37cac3e39154b191340740a70c3bc17..277bc947e25bd5a43d307c957c85c0cea619c8ce 100644 (file)
@@ -22,6 +22,9 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#ifndef ST_GLSL_TO_TGSI_H
+#define ST_GLSL_TO_TGSI_H
+
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
 #include "main/mtypes.h"
@@ -73,3 +76,5 @@ _mesa_sysval_to_semantic(unsigned sysval);
 #ifdef __cplusplus
 }
 #endif
+
+#endif
index 5b0bff7b2f86699ad1267c4e39cb9afdf9c8969c..67cc084d600dcb0a565748bedf81382879500e31 100644 (file)
@@ -21,6 +21,9 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#ifndef ST_SHADER_CACHE_H
+#define ST_SHADER_CACHE_H
+
 #include "st_context.h"
 #include "compiler/blob.h"
 #include "main/mtypes.h"
@@ -73,3 +76,5 @@ st_store_ir_in_disk_cache(struct st_context *st, struct gl_program *prog,
 #ifdef __cplusplus
 }
 #endif
+
+#endif