From 3f9d30855fd52f88e302f807ce636a8aa84176f1 Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 29 Aug 2022 09:42:26 -0700 Subject: [PATCH] Define `WIN32_LEAN_AND_MEAN` when including `windows.h` The hilariously-named WIN32_LEAN_AND_MEAN slims down the number of header files included in the already-massive `windows.h`. I know people say Moore's law and precompiled headers and all that (well, we don't use precompiled headers), but they kinda forgot about virtual machines, and there's no reason not to define this and slim down the number of headers anyway. --- desktop_version/src/FileSystemUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index cf1bbff7..72dc8069 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -15,6 +15,7 @@ /* These are needed for PLATFORM_* crap */ #if defined(_WIN32) +#define WIN32_LEAN_AND_MEAN #include #include static int mkdir(char* path, int mode)