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

Vinson Lee vlee at freedesktop.org
Thu May 8 09:59:33 PDT 2014


Oracle Solaris Studio does not support "#pragma once".

Fixes build error with Oracle Solaris Studio.

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

diff --git a/tests/util/piglit-log.h b/tests/util/piglit-log.h
index 13037be..d52ccd9 100644
--- a/tests/util/piglit-log.h
+++ b/tests/util/piglit-log.h
@@ -22,6 +22,8 @@
  */
 
 #pragma once
+#ifndef PIGLIT_LOG_H
+#define PIGLIT_LOG_H
 
 #include <stdint.h>
 
@@ -65,3 +67,5 @@ piglit_logi(const char *fmt, ...);
 #ifdef __cplusplus
 } /* end extern "C" */
 #endif
+
+#endif /* PIGLIT_LOG_H */
-- 
1.7.9.2



More information about the Piglit mailing list