summaryrefslogtreecommitdiff
path: root/src/setup/multiplayer.c
diff options
context:
space:
mode:
authorSimon Howard2013-03-27 02:25:20 +0000
committerSimon Howard2013-03-27 02:25:20 +0000
commit917aa5b184fdfc03a80ce46fb857c3a2780dc705 (patch)
tree64e5777ad96d5001a48af2255afc9a7111002b04 /src/setup/multiplayer.c
parentf0f56055d87e51f7ab974cd7812de72ce1cd9100 (diff)
downloadchocolate-doom-917aa5b184fdfc03a80ce46fb857c3a2780dc705.tar.gz
chocolate-doom-917aa5b184fdfc03a80ce46fb857c3a2780dc705.tar.bz2
chocolate-doom-917aa5b184fdfc03a80ce46fb857c3a2780dc705.zip
Remove duplicate definition of M_OEMToUTF8() (thanks exp(x)).
Subversion-branch: /branches/v2-branch Subversion-revision: 2569
Diffstat (limited to 'src/setup/multiplayer.c')
-rw-r--r--src/setup/multiplayer.c23
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)