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

Brian Paul brianp at vmware.com
Thu May 8 10:36:09 PDT 2014


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 <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 */
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list