summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMichał Janiszewski <[email protected]>2018-10-29 15:51:00 -0600
committerBrian Paul <[email protected]>2018-10-30 06:19:10 -0600
commit2734baa9e24fc9401fab2a116fcfb18c56538175 (patch)
tree73fbbc985a02a43b94ee9990373f857ad1fe67c0 /src/mesa/main
parentec994ca0fc2b853c00d9b54de7c87715ec605c2e (diff)
mesa: Add missing include guards
Signed-off-by: Michał Janiszewski <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texcompress_bptc_tmp.h5
-rw-r--r--src/mesa/main/texcompress_s3tc_tmp.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress_bptc_tmp.h b/src/mesa/main/texcompress_bptc_tmp.h
index 3c4ea2c0131..90837d6af3a 100644
--- a/src/mesa/main/texcompress_bptc_tmp.h
+++ b/src/mesa/main/texcompress_bptc_tmp.h
@@ -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
diff --git a/src/mesa/main/texcompress_s3tc_tmp.h b/src/mesa/main/texcompress_s3tc_tmp.h
index 92316a74dd0..dbf8c871b7a 100644
--- a/src/mesa/main/texcompress_s3tc_tmp.h
+++ b/src/mesa/main/texcompress_s3tc_tmp.h
@@ -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