Summary: Without `WIN32_LEAN_AND_MEAN` defined, including `Windows.h` includes a massive number of extra headers. There are situations that need things that are defined in those headers, so keep folly working even when it isn't defined.
Reviewed By: yfeldblum
Differential Revision:
D3671350
fbshipit-source-id:
0de986e17cdd4be386be8a9eeb0075b4af44024d
#include <sys/time.h>
#else
// Someone decided this was a good place to define timeval.....
-#include <WinSock2.h>
+#include <folly/portability/Windows.h>
struct timezone {
int tz_minuteswest;
int tz_dsttime;
#include <direct.h> // nolint
#endif
-#include <Windows.h>
#include <WinSock2.h>
+#include <Windows.h>
#ifdef CAL_GREGORIAN
#undef CAL_GREGORIAN