From be8e237a8e462f8517392eccf0f94a30d16d7ef3 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 11 Apr 2016 11:11:47 -0400 Subject: [PATCH] Revert "win,build: remove unused build defines" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 60db5b5a1bb446e4b8a6d15ce277d5f7987bf07a. Removing the WIN32_LEAN_AND_MEAN definition caused build errors on mingw64. Fixes: https://github.com/libuv/libuv/issues/820 PR-URL: https://github.com/libuv/libuv/pull/821 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Ben Noordhuis --- Makefile.am | 1 + Makefile.mingw | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index dfd4353a..b6925288 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,6 +43,7 @@ if WINNT include_HEADERS += include/uv-win.h include/tree.h AM_CPPFLAGS += -I$(top_srcdir)/src/win \ + -DWIN32_LEAN_AND_MEAN \ -D_WIN32_WINNT=0x0600 LIBS += -lws2_32 -lpsapi -liphlpapi -lshell32 -luserenv libuv_la_SOURCES += src/win/async.c \ diff --git a/Makefile.mingw b/Makefile.mingw index 3130bac4..156f15da 100644 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -20,6 +20,7 @@ CFLAGS += -Wall \ -Iinclude \ -Isrc \ -Isrc/win \ + -DWIN32_LEAN_AND_MEAN \ -D_WIN32_WINNT=0x0600 INCLUDES = include/stdint-msvc2008.h \