int64_t aacenc_timer(void)
{
+#if HAVE_STRUCT___TIMEB64
struct __timeb64 tv;
_ftime64(&tv);
+#else
+ struct timeb tv;
+ ftime(&tv);
+#endif
return (int64_t)tv.time * 1000 + tv.millitm;
}
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;