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

Brian Paul brianp at vmware.com
Mon Jun 25 07:31:08 PDT 2012


On 06/23/2012 03:01 PM, Vinson Lee wrote:
> 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 */


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


More information about the Piglit mailing list