[Piglit] [PATCH] util: Silence WIN32_LEAN_AND_MEAN redefined warning.
Vinson Lee
vlee at freedesktop.org
Fri Jan 24 22:39:13 PST 2014
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
--
1.8.5.2
More information about the Piglit
mailing list