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 \