removed some compilation warnings for mingw

This commit is contained in:
BADIM-PC\Vadim
2017-12-14 15:19:13 +03:00
parent 4f55ed7667
commit 83396664b5
2 changed files with 7 additions and 0 deletions

View File

@@ -30,6 +30,10 @@
#include <commdlg.h>
#include <stdio.h>
FILE* _wfopen(const wchar_t *, const wchar_t *);
wchar_t* wcsrchr(const wchar_t *, wchar_t);
wchar_t* wcscpy(wchar_t *, const wchar_t *);
#define UTF8ToString(S) (wchar_t *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
#define StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(wchar_t))