1 --- libass/libass/ass_fontselect.c.tchar 2019-03-19 12:07:15.464633200 +0100
2 +++ libass/libass/ass_fontselect.c 2019-03-19 12:06:48.404627300 +0100
4 #include "ass_string.h"
9 #define ABS(x) ((x) < 0 ? -(x) : (x))
10 #define MAX_FULLNAME 100
11 @@ -195,12 +194,12 @@ static inline wchar_t *ToWide (const cha
12 static void load_fonts_from_dir(ASS_Library *library, const char *dir)
14 wchar_t *dirw = ToWide(dir);
15 - _TDIR *d = _topendir(dirw);
16 + _WDIR *d = _wopendir(dirw);
21 - struct _tdirent *entry = _treaddir(d);
22 + struct _wdirent *entry = _wreaddir(d);
25 char* d_name = FromWide(entry->d_name);
26 @@ -220,7 +219,7 @@ static void load_fonts_from_dir(ASS_Libr