[FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

nil-admirari at mailo.com nil-admirari at mailo.com
Sat May 21 14:08:08 EEST 2022


> I thought the purpose of all those re-mappings would be that plain
> Posix functions can still be used..?
> It's already the Posix declaration where the function name 
> is the same as the structure name (stat).

Not possible for stat precisely because of function and struct sharing a name.
That's why stat is used as

# ifndef _WIN32
ret = stat(filename, &st);
# else
ret = win32_stat(filename, &st);
# endif

Such blocks are either to be copied across the application,
or hidden behind yet another macro.





More information about the ffmpeg-devel mailing list