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

Fixes build error with Oracle Solaris Studio.

Signed-off-by: Vinson Lee <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to