diff --git a/sago/platform_folders.cpp b/sago/platform_folders.cpp index 25e9c43..d170d97 100644 --- a/sago/platform_folders.cpp +++ b/sago/platform_folders.cpp @@ -33,7 +33,17 @@ SOFTWARE. #include #ifdef _WIN32 +// Make sure we don't bring in all the extra junk with windows.h +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +// stringapiset.h depends on this #include +// For SUCCEEDED macro +#include +// For WideCharToMultiByte +#include +// For SHGetFolderPathW and various CSIDL "magic numbers" #include static std::string win32_utf16_to_utf8(const wchar_t* wstr)