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

Vinson Lee vlee at freedesktop.org
Wed Oct 10 23:08:30 PDT 2012


Solaris Studio does not support "#pragma once".

Fixes build error with Solaris Studio.

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

diff --git a/tests/util/piglit-framework-gl/piglit_gl_framework.h b/tests/util/piglit-framework-gl/piglit_gl_framework.h
index 1091a65..6dbdf94 100644
--- a/tests/util/piglit-framework-gl/piglit_gl_framework.h
+++ b/tests/util/piglit-framework-gl/piglit_gl_framework.h
@@ -22,6 +22,8 @@
  */
 
 #pragma once
+#ifndef PIGLIT_GL_FRAMEWORK_H
+#define PIGLIT_GL_FRAMEWORK_H
 
 #include <stdbool.h>
 
@@ -80,3 +82,5 @@ piglit_gl_framework_init(struct piglit_gl_framework *gl_fw,
 
 void
 piglit_gl_framework_teardown(struct piglit_gl_framework *gl_fw);
+
+#endif /* PIGLIT_GL_FRAMEWORK_H */
-- 
1.7.3.2



More information about the Piglit mailing list