win: move LEAN_AND_MEAN before tls includes

It's always mean... we define LEAN_AND_MEAN in libwebsockets.h
but we include libwebsockets.h partway through private-libwebsockets.h.

Reorder for https://github.com/warmcat/libwebsockets/issues/1080
This commit is contained in:
Andy Green 2017-10-31 06:40:04 +08:00
parent 491fd183f8
commit 7594bc585c

View file

@ -102,6 +102,11 @@ char *ets_strchr(const char *s, int c);
#endif
#if defined(WIN32) || defined(_WIN32)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#if (WINVER < 0x0501)
#undef WINVER
#undef _WIN32_WINNT