isl: use ifndef header guards
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 11 Oct 2016 17:26:20 +0000 (18:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:53:32 +0000 (11:53 +0100)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/isl/isl.h
src/intel/isl/isl_gen4.h
src/intel/isl/isl_gen6.h
src/intel/isl/isl_gen7.h
src/intel/isl/isl_gen8.h
src/intel/isl/isl_gen9.h
src/intel/isl/isl_priv.h

index 2edcdd1..11ad891 100644 (file)
@@ -35,7 +35,8 @@
  *    - functions
  */
 
-#pragma once
+#ifndef ISL_H
+#define ISL_H
 
 #include <assert.h>
 #include <stdbool.h>
@@ -1477,3 +1478,5 @@ isl_surf_get_depth_format(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_H */
index bc8aade..dc6102b 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_GEN4_H
+#define ISL_GEN4_H
 
 #include "isl.h"
 
@@ -46,3 +47,5 @@ isl_gen4_choose_image_alignment_el(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_GEN4_H */
index 5151ff9..c954026 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_GEN6_H
+#define ISL_GEN6_H
 
 #include "isl.h"
 
@@ -46,3 +47,5 @@ isl_gen6_choose_image_alignment_el(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_GEN6_H */
index ddc6cab..f1b7252 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_GEN7_H
+#define ISL_GEN7_H
 
 #include "isl.h"
 
@@ -51,3 +52,5 @@ isl_gen7_choose_image_alignment_el(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_GEN7_H */
index 0a526ab..f5eb6a2 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_GEN8_H
+#define ISL_GEN8_H
 
 #include "isl.h"
 
@@ -46,3 +47,5 @@ isl_gen8_choose_image_alignment_el(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_GEN8_H */
index 12b42dc..26d716f 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_GEN9_H
+#define ISL_GEN9_H
 
 #include "isl.h"
 
@@ -40,3 +41,5 @@ isl_gen9_choose_image_alignment_el(const struct isl_device *dev,
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* ISL_GEN9_H */
index b539f10..dc3975d 100644 (file)
@@ -21,7 +21,8 @@
  *  IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef ISL_PRIV_H
+#define ISL_PRIV_H
 
 #include <assert.h>
 #include <strings.h>
@@ -197,3 +198,5 @@ isl_gen8_buffer_fill_state_s(void *state,
 void
 isl_gen9_buffer_fill_state_s(void *state,
                              const struct isl_buffer_fill_state_info *restrict info);
+
+#endif /* ISL_PRIV_H */