diff options
-rw-r--r-- | src/setup/multiplayer.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c index e35c2215..e9f18799 100644 --- a/src/setup/multiplayer.c +++ b/src/setup/multiplayer.c @@ -30,6 +30,7 @@ #include "d_iwad.h" #include "m_config.h" +#include "m_misc.h" #include "doom/d_englsh.h" #include "m_controls.h" @@ -1008,28 +1009,6 @@ void SetChatMacroDefaults(void) } } -#ifdef _WIN32 - -#define WIN32_LEAN_AND_MEAN -#include <windows.h> - -char *M_OEMToUTF8(const char *oem) -{ - unsigned int len = strlen(oem) + 1; - wchar_t *tmp; - char *result; - - tmp = malloc(len * sizeof(wchar_t)); - MultiByteToWideChar(CP_OEMCP, 0, oem, len, tmp, len); - result = malloc(len * 4); - WideCharToMultiByte(CP_UTF8, 0, tmp, len, result, len * 4, NULL, NULL); - free(tmp); - - return result; -} - -#endif - void SetPlayerNameDefault(void) { if (net_player_name == NULL) |