[Piglit] [PATCH] util: Add include guards in piglit-util.h.

Vinson Lee vlee at freedesktop.org
Mon May 14 18:41:45 PDT 2012


Solaris Studio does not support "#pragma once".

Fixes build with Solaris Studio.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/util/piglit-util.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index c0323ca..51c3220 100755
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -22,6 +22,8 @@
  */
 
 #pragma once
+#ifndef PIGLIT_UTIL_H
+#define PIGLIT_UTIL_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -306,3 +308,5 @@ static const GLint PIGLIT_ATTRIB_TEX = 1;
 #ifdef __cplusplus
 } /* end extern "C" */
 #endif
+
+#endif /* PIGLIT_UTIL_H */
-- 
1.7.3.2



More information about the Piglit mailing list