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 2edcdd1dbb7df9c42fd49a2daf20b74c9d757d0e..11ad8919e6413120c3022f479f9164d4dc675912 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 bc8aadeef27b74d00c1c70d90fd19d19061ac371..dc6102bdf189b2eadae988a657d0b023970361a6 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 5151ff9858c085cf41d73f99697c74c884ce86ae..c954026efb6468f63aded16859db3009f69426b2 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 ddc6cab65f8849a835af6a6f45652b7c1caeac4f..f1b7252ba3ea807e88fd4bf45b99a59a938dd121 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 0a526abba2d549a2c92946f5bdfd29cc46a71ae6..f5eb6a2951cc26bd77dfd40ea032b8a0615b03fa 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 12b42dc5c1cdbb536c78cf43a373420352b15d48..26d716f8f5bf7616031f9702a63a6210bab6fc63 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 b539f10638dd23f0956d296819952b9cc4eedf6d..dc3975d3ca842e1d71e240bef7203c184310947f 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 */