diff --git a/src/discord_register_win.cpp b/src/discord_register_win.cpp index e441318..0b1c4a1 100644 --- a/src/discord_register_win.cpp +++ b/src/discord_register_win.cpp @@ -7,7 +7,6 @@ #define NOIME #include #include -#include #include /** @@ -20,6 +19,7 @@ * The entire function is rewritten */ #ifdef __MINGW32__ +#include /// strsafe.h fixes static HRESULT StringCbPrintfW(LPWSTR pszDest, size_t cbDest, LPCWSTR pszFormat, ...) { @@ -34,6 +34,7 @@ static HRESULT StringCbPrintfW(LPWSTR pszDest, size_t cbDest, LPCWSTR pszFormat, return ret; } #else +#include #include #endif // __MINGW32__