[vlc-devel] [PATCH 1/2] compat: add realpath used by test_media_subitems()

Steve Lhomme robux4 at gmail.com
Thu Sep 15 18:44:26 CEST 2016


No I think you need to include vlc_common to use it. It was mostly
copy/pasted from there.

On Sep 15, 2016 18:28, "Jean-Baptiste Kempf" <jb at videolan.org> wrote:

> On 15 Sep, Steve Lhomme wrote :
> > +#ifdef _WIN32
> > +    int len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 );
> > +    if (len == 0)
> > +        return NULL;
> > +
> > +    wchar_t *wrelpath = (wchar_t *)malloc(len * sizeof (wchar_t));
> > +    if (wrelpath == NULL)
> > +        return NULL;
> > +
> > +    MultiByteToWideChar( CP_UTF8, 0, relpath, -1, wrelpath, len );
>
> Would it work to include vlc_charset.h here and call FromWide and
> ToWide, since they are static inlined there?
>
> (I'm not sure, because that header could need vlc_fixup or config.h)
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160915/b8f9088a/attachment.html>


More information about the vlc-devel mailing list