[vlc-commits] WinCE: tentative compile fix

Rémi Denis-Courmont git at videolan.org
Sat Aug 6 11:29:08 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug  6 12:18:22 2011 +0300| [6499c2cc61b6d2bca7800effe35fdad8f06b41a4] | committer: Rémi Denis-Courmont

WinCE: tentative compile fix

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6499c2cc61b6d2bca7800effe35fdad8f06b41a4
---

 src/win32/filesystem.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index 7128781..f26c29c 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -123,6 +123,7 @@ int vlc_mkdir( const char *dirname, mode_t mode )
 
 char *vlc_getcwd (void)
 {
+#ifndef UNDER_CE
     wchar_t *wdir = _wgetcwd (NULL, 0);
     if (wdir == NULL)
         return NULL;
@@ -130,6 +131,9 @@ char *vlc_getcwd (void)
     char *dir = FromWide (wdir);
     free (wdir);
     return dir;
+#else
+    return NULL;
+#endif
 }
 
 /* Under Windows, these wrappers return the list of drive letters



More information about the vlc-commits mailing list