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 <[email protected]>
---
  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 <[email protected]>

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to