[vlc-commits] Win32: disable tmpfile() on WinRT

Jean-Baptiste Kempf git at videolan.org
Wed Feb 25 16:39:47 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb 25 16:38:58 2015 +0100| [8c3b357eea8c45ac60dabbc664fecb4e29e0cf15] | committer: Jean-Baptiste Kempf

Win32: disable tmpfile() on WinRT

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

 src/win32/filesystem.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index 7f29c8f..824a708 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -301,6 +301,7 @@ int vlc_accept (int lfd, struct sockaddr *addr, socklen_t *alen, bool nonblock)
     return fd;
 }
 
+#if !VLC_WINSTORE_APP
 FILE *vlc_win32_tmpfile(void)
 {
     TCHAR tmp_path[MAX_PATH-14];
@@ -332,4 +333,10 @@ FILE *vlc_win32_tmpfile(void)
     }
     return stream;
 }
+#else
+FILE *vlc_win32_tmpfile(void)
+{
+    return NULL;
+}
+#endif
 



More information about the vlc-commits mailing list