diff options
author | Chris Robinson <[email protected]> | 2018-12-31 18:23:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-31 18:23:30 -0800 |
commit | 4c4572ae8a54f4aefd76c1db0b576f6ae37339a0 (patch) | |
tree | 45ff5c1176f14a5b53ea65eaee0c4488cf37db04 /common/win_main_utf8.h | |
parent | d8eecc89e0dfd4441f2d47e274c98b184a9bb4f0 (diff) |
Compile makehrtf as C++
Diffstat (limited to 'common/win_main_utf8.h')
-rw-r--r-- | common/win_main_utf8.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/win_main_utf8.h b/common/win_main_utf8.h index faddc257..242d3b8a 100644 --- a/common/win_main_utf8.h +++ b/common/win_main_utf8.h @@ -30,7 +30,7 @@ static FILE *my_fopen(const char *fname, const char *mode) return NULL; } - wname = calloc(sizeof(WCHAR), namelen+modelen); + wname = (WCHAR*)calloc(sizeof(WCHAR), namelen+modelen); wmode = wname + namelen; MultiByteToWideChar(CP_UTF8, 0, fname, -1, wname, namelen); MultiByteToWideChar(CP_UTF8, 0, mode, -1, wmode, modelen); @@ -73,7 +73,7 @@ static void GetUnicodeArgs(int *argc, char ***argv) total += WideCharToMultiByte(CP_UTF8, 0, args[i], -1, NULL, 0, NULL, NULL); atexit(cleanup_arglist); - arglist = *argv = calloc(1, total); + arglist = *argv = (char**)calloc(1, total); (*argv)[0] = (char*)(*argv + nargs); for(i = 0;i < nargs-1;i++) { |