[vlc-commits] Hack to fix Windows build

Rémi Denis-Courmont git at videolan.org
Tue Aug 30 21:46:09 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 30 22:45:33 2011 +0300| [e6becb83bc23f280cb178009ca7c67ec8412e3d7] | committer: Rémi Denis-Courmont

Hack to fix Windows build

Better patch welcome

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

 modules/access/file.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index e3ebca3..b690b8d 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -89,7 +89,6 @@ struct access_sys_t
     bool b_pace_control;
 };
 
-#if !defined (WIN32) && !defined (__OS2__)
 static bool IsRemote (int fd)
 {
 #if defined (HAVE_FSTATVFS) && defined (MNT_LOCAL)
@@ -124,7 +123,6 @@ static bool IsRemote (int fd)
 
 #endif
 }
-#endif
 
 #ifndef HAVE_POSIX_FADVISE
 # define posix_fadvise(fd, off, len, adv)
@@ -173,14 +171,6 @@ int Open( vlc_object_t *p_this )
             dialog_Fatal (p_access, _("File reading failed"),
                           _("VLC could not open the file \"%s\". (%m)"), path);
         }
-
-#ifdef WIN32
-        wchar_t *wpath = ToWide (path);
-        if (wpath != NULL && PathIsNetworkPathW (wpath))
-            is_remote = true;
-        free (wpath);
-# define IsRemote( fd ) ((void)fd, is_remote)
-#endif
     }
     if (fd == -1)
         return VLC_EGENERIC;



More information about the vlc-commits mailing list