[libdvdcss-devel] Win32: Fix broken mkdir() invocations that need to be mapped to _mkdir()

Diego Biurrun diego at biurrun.de
Mon Feb 11 21:11:49 CET 2013


On Mon, Feb 11, 2013 at 09:10:23PM +0100, Alexander Strasser wrote:
> Diego Biurrun wrote:
> > libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Feb 11 01:21:26 2013 +0100| [1fab727ead1c7f84300cae8d077a24c9c9aa83aa] | committer: Jean-Baptiste Kempf
> > 
> > Win32: Fix broken mkdir() invocations that need to be mapped to _mkdir()
> > 
> > --- a/src/libdvdcss.c
> > +++ b/src/libdvdcss.c
> > @@ -132,6 +132,10 @@
> >  #include "ioctl.h"
> >  #include "device.h"
> >  
> > +#if defined(WIN32)
> > +#define mkdir(a, b) _mkdir(a)
> > +#endif
> 
>   I guess this renders direct.h necessary for MSVC. I believe
> the code was broken before though.
> 
>   For MinGW direct.h might not be necessary if I remember my
> latest tests correctly. But merely including it won't hurt for
> MinGW nor OS/2 AFAICT.

I tested on MinGW, it worked there w/o a direct.h #include.

Diego


More information about the libdvdcss-devel mailing list