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

Vinson Lee vlee at freedesktop.org
Sat Jun 23 14:01:50 PDT 2012


Solaris Studio does not support "#pragma once".

Fixes piglit-framework build error with Solaris Studio.

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

diff --git a/tests/util/piglit-framework.h b/tests/util/piglit-framework.h
index 850a1f8..e1a2a98 100644
--- a/tests/util/piglit-framework.h
+++ b/tests/util/piglit-framework.h
@@ -22,6 +22,8 @@
  */
 
 #pragma once
+#ifndef PIGLIT_FRAMEWORK_H
+#define PIGLIT_FRAMEWORK_H
 
 #include <assert.h>
 #include <stdbool.h>
@@ -127,3 +129,5 @@ extern bool piglit_use_fbo;
 extern unsigned int piglit_winsys_fbo;
 
 extern void piglit_present_results();
+
+#endif /* PIGLIT_FRAMEWORK_H */
-- 
1.7.3.2



More information about the Piglit mailing list