On 05/08/2014 10:59 AM, Vinson Lee wrote:
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 */
Reviewed-by: Brian Paul <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit