[Mesa-dev] [PATCH 02/10] nir: add NIR_H include guard

Emil Velikov emil.l.velikov at gmail.com
Wed Oct 7 03:11:29 PDT 2015


We will reuse it in later commits, to check if other headers are
included from within nir.h.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/glsl/nir/nir.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index bde9f49..b017be2 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -26,6 +26,8 @@
  */
 
 #pragma once
+#ifndef NIR_H
+#define NIR_H
 
 #include "util/hash_table.h"
 #include "../list.h"
@@ -1975,3 +1977,5 @@ gl_system_value nir_system_value_from_intrinsic(nir_intrinsic_op intrin);
 #ifdef __cplusplus
 } /* extern "C" */
 #endif
+
+#endif /* NIR_H */
-- 
2.5.0



More information about the mesa-dev mailing list