improve for mingw

This commit is contained in:
lixianjing 2023-08-21 16:54:22 +08:00
parent dbb805eaa4
commit c74f8de0b5

View File

@ -1032,7 +1032,7 @@ ret_t tk_free_utf8_argv(int argc, char** argv);
#define tk_str_cmp tk_strcmp
#define tk_str_icmp tk_stricmp
#ifdef WIN32
#if defined(WIN32) && !defined(MINGW)
#define MAIN() \
int wmain(int argc, wchar_t* wargv[]) { \
char** argv = tk_to_utf8_argv(argc, wargv);