[vlc-devel] [PATCH] WinCE: remove call to unsupported getcwd()

Pierre Ynard linkfanel at yahoo.fr
Mon May 18 18:23:18 CEST 2009


> > If so I understand, but this
> > one doesn't really qualify since the whole functionality is just
> > unavailable, and cannot be reimplemented.
> 
> Then how come you actually do reimplement it with ifdefs?!

I did not. I worked around it. By returning a constant "\\My Documents"
instead of anything that looks like a current directory.

But it's not really important to me. I'm just trying to fix the WinCE
build. If you'd rather have me send a patch containing:

char *getcwd(char *buf, size_t size)
{
#ifdef UNDER_CE
    return strncpy(buf, "\\My Documents", size);
#endif
}

just tell me, I'll do it.

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the vlc-devel mailing list