1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

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:43:04 +08:00
parent 6232d3f8cc
commit 52f2ac57ea

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