[vlc-commits] Add missing include in order to provide a declaration of _pipe under MSVC.
Felix Abecassis
git at videolan.org
Sat Nov 30 21:31:19 CET 2013
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Nov 29 17:43:11 2013 +0100| [4277191131b14a59f0602eb794c80d5b909b14f5] | committer: Jean-Baptiste Kempf
Add missing include in order to provide a declaration of _pipe under MSVC.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4277191131b14a59f0602eb794c80d5b909b14f5
---
src/win32/filesystem.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index a82bb73..886a158 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -44,6 +44,11 @@
#include <vlc_fs.h>
#include "libvlc.h" /* vlc_mkdir */
+#ifdef _MSC_VER
+# define __STDC__ 1
+# include <io.h> /* _pipe */
+#endif
+
static wchar_t *widen_path (const char *path)
{
wchar_t *wpath;
More information about the vlc-commits
mailing list