[Mplayer-cvslog] CVS: main/libvo vo_jpeg.c,1.22,1.23
D Richard Felker III
dalias at aerifal.cx
Wed Sep 15 19:06:54 CEST 2004
On Wed, Sep 15, 2004 at 05:17:09PM +0200, Sascha Sommer CVS wrote:
> CVS change done by Sascha Sommer CVS
>
> Update of /cvsroot/mplayer/main/libvo
> In directory mail:/var2/tmp/cvs-serv31386/libvo
>
> Modified Files:
> vo_jpeg.c
> Log Message:
> mingw compile fix
imo this should be reported as a bug to mingw. there's no reason for
them to prototype mkdir as int mkdir(const char *) instead of int
mkdir(const char *, ...).
rich
>
> Index: vo_jpeg.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v
> retrieving revision 1.22
> retrieving revision 1.23
> diff -u -r1.22 -r1.23
> --- vo_jpeg.c 12 Sep 2004 01:35:41 -0000 1.22
> +++ vo_jpeg.c 15 Sep 2004 15:17:06 -0000 1.23
> @@ -97,7 +97,11 @@
> void jpeg_mkdir(char *buf, int verbose) {
> struct stat stat_p;
>
> +#ifndef __MINGW32__
> if ( mkdir(buf, 0755) < 0 ) {
> +#else
> + if ( mkdir(buf) < 0 ) {
> +#endif
> switch (errno) { /* use switch in case other errors need to be caught
> and handled in the future */
> case EEXIST:
>
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list