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

Soft Works softworkz at hotmail.com
Sat May 21 14:12:53 EEST 2022



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of nil-
> admirari at mailo.com
> Sent: Saturday, May 21, 2022 1:08 PM
> To: ffmpeg-devel at ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename,
> file_open: Support long file names on Windows
> 
> > 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 exactly what is said above and before :-)

> 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.

The latter is what my patchset already does.


Kind regards,
sw


More information about the ffmpeg-devel mailing list