Mesa (master): i965/cfg: Protect brw_cfg.h from multiple inclusion.

Matt Turner mattst88 at kemper.freedesktop.org
Thu May 15 22:43:22 UTC 2014


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Wed Feb 19 14:47:57 2014 -0800

i965/cfg: Protect brw_cfg.h from multiple inclusion.

Acked-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/brw_cfg.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h
index 7bd3e24..5911107 100644
--- a/src/mesa/drivers/dri/i965/brw_cfg.h
+++ b/src/mesa/drivers/dri/i965/brw_cfg.h
@@ -25,6 +25,10 @@
  *
  */
 
+#pragma once
+#ifndef BRW_CFG_H
+#define BRW_CFG_H
+
 #include "brw_shader.h"
 
 class bblock_t;
@@ -89,3 +93,5 @@ public:
    bblock_t **blocks;
    int num_blocks;
 };
+
+#endif /* BRW_CFG_H */




More information about the mesa-commit mailing list