mesa: Add missing include guards

Signed-off-by: Michał Janiszewski <janisozaur+signed@gmail.com>

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Michał Janiszewski
2018-10-29 15:51:00 -06:00
committed by Brian Paul
parent ec994ca0fc
commit 2734baa9e2
4 changed files with 20 additions and 0 deletions
+5
View 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
+5
View 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
+5
View 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
+5
View 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