int64_t aacenc_timer(void)
{
-#if _MSC_VER || HAVE_STRUCT___TIMEB64
+#if HAVE_STRUCT___TIMEB64
struct __timeb64 tv;
_ftime64(&tv);
#else
codepage_decode_wchar(CP_UTF8, s, &ws);
free(s);
fflush(fp);
- WriteConsoleW(fh, ws, cnt, &nw, 0);
+ WriteConsoleW(fh, ws, wcslen(ws), &nw, 0);
free(ws);
}
return cnt;