[Piglit] [PATCH] util: Silence WIN32_LEAN_AND_MEAN redefined warning.

Brian Paul brianp at vmware.com
Sat Jan 25 09:19:15 PST 2014


On 01/24/2014 11:39 PM, Vinson Lee wrote:
> Fixes MinGW warning.
>
> piglit-util.c:25:0: warning: "WIN32_LEAN_AND_MEAN" redefined [enabled by default]
>   #define WIN32_LEAN_AND_MEAN
>   ^
> <command-line>:0:0: note: this is the location of the previous definition
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/util/piglit-util.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
> index fe49fed..0f3964c 100644
> --- a/tests/util/piglit-util.c
> +++ b/tests/util/piglit-util.c
> @@ -22,7 +22,9 @@
>    */
>
>   #if defined(_WIN32)
> +#ifndef WIN32_LEAN_AND_MEAN
>   #define WIN32_LEAN_AND_MEAN
> +#endif
>   #include <windows.h>
>   #endif

All 7 patches look OK to me.

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



More information about the Piglit mailing list