qt: playlist: use item title if available
[vlc.git] / contrib / src / ass / libass-no-tchar.patch
blob12a6681e95fcefa0a61929d053386bf45217e1ce
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
3 @@ -48,7 +48,6 @@
4 #include "ass_string.h"
6 #include <windows.h>
7 -#include <tchar.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);
17 free(dirw);
18 if (!d)
19 return;
20 while (1) {
21 - struct _tdirent *entry = _treaddir(d);
22 + struct _wdirent *entry = _wreaddir(d);
23 if (!entry)
24 break;
25 char* d_name = FromWide(entry->d_name);
26 @@ -220,7 +219,7 @@ static void load_fonts_from_dir(ASS_Libr
28 free(d_name);
30 - _tclosedir(d);
31 + _wclosedir(d);
34 /**