Module: Mesa
Branch: master
Commit: 72e70c00f3855fbeaeffa14d24f7b2c47dfe572b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=72e70c00f3855fbeaeffa14d24f7b2c47dfe572b

Author: Emil Velikov <emil.veli...@collabora.com>
Date:   Tue Oct 11 18:26:22 2016 +0100

intel/common: use correct header guards

Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
Reviewed-by: Chad Versace <chadvers...@chromium.org>

---

 src/intel/common/gen_device_info.h      | 6 +++++-
 src/intel/common/gen_l3_config.h        | 5 +++++
 src/intel/common/gen_sample_positions.h | 5 ++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/intel/common/gen_device_info.h 
b/src/intel/common/gen_device_info.h
index 7347db5..10324e6 100644
--- a/src/intel/common/gen_device_info.h
+++ b/src/intel/common/gen_device_info.h
@@ -22,7 +22,9 @@
   *
   */
 
-#pragma once
+#ifndef GEN_DEVICE_INFO_H
+#define GEN_DEVICE_INFO_H
+
 #include <stdbool.h>
 
 /**
@@ -145,3 +147,5 @@ struct gen_device_info
 
 bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
 const char *gen_get_device_name(int devid);
+
+#endif /* GEN_DEVICE_INFO_H */
diff --git a/src/intel/common/gen_l3_config.h b/src/intel/common/gen_l3_config.h
index 0540a7c..25a9675 100644
--- a/src/intel/common/gen_l3_config.h
+++ b/src/intel/common/gen_l3_config.h
@@ -21,6 +21,9 @@
  * IN THE SOFTWARE.
  */
 
+#ifndef GEN_L3_CONFIG_H
+#define GEN_L3_CONFIG_H
+
 #include <stdio.h>
 
 #include "gen_device_info.h"
@@ -88,3 +91,5 @@ gen_get_l3_config_urb_size(const struct gen_device_info 
*devinfo,
                            const struct gen_l3_config *cfg);
 
 void gen_dump_l3_config(const struct gen_l3_config *cfg, FILE *fp);
+
+#endif /* GEN_L3_CONFIG_H */
diff --git a/src/intel/common/gen_sample_positions.h 
b/src/intel/common/gen_sample_positions.h
index 0411bf0..b86a7d8 100644
--- a/src/intel/common/gen_sample_positions.h
+++ b/src/intel/common/gen_sample_positions.h
@@ -20,7 +20,8 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
-#pragma once
+#ifndef GEN_SAMPLE_POSITIONS_H
+#define GEN_SAMPLE_POSITIONS_H
 
 #define GEN_SAMPLE_POS_1X(prefix) \
 prefix##0XOffset   = 0.5; \
@@ -93,3 +94,5 @@ prefix##14XOffset  = 0.8750; \
 prefix##14YOffset  = 0.9375; \
 prefix##15XOffset  = 0.0625; \
 prefix##15YOffset  = 0.0000;
+
+#endif /* GEN_SAMPLE_POSITIONS_H */

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to