[vlc-devel] [PATCH] Win32: reimplement tmpfile()

Jean-Baptiste Kempf jb at videolan.org
Mon Feb 16 19:39:04 CET 2015


On 16 Feb, Rémi Denis-Courmont wrote :
> Le lundi 16 février 2015, 19:22:05 Jean-Baptiste Kempf a écrit :
> > Because tmpfile() cannot be used if not admin on the machine on
> > Windows...
> > 
> > Close #13642
> > ---
> >  src/text/strings.c | 35 +++++++++++++++++++++++++++++++++++
> 
> I dunno... should this not go to src/win32/ or compat/ so it can be reused?

I agree it should.

However, I don't know how to put it in compat/ because tmpfile() exists,
links and is just broken in the implementation.
I don't know how to put it in src/win32/ because then how can I export
correctly the function in the headers, since the other OSes don't have
/need it?
I could put it in vlc_fixup.h, but I was afraid it would be too big to
be there.

And finally, I'd like to backport this.

So, what should I do, according to you?

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list