WinCE: don't use features absent of Windows Mobile
authorGeoffroy Couprie <geo.couprie@gmail.com>
Thu, 19 Feb 2009 01:11:08 +0000 (02:11 +0100)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Thu, 19 Feb 2009 01:11:08 +0000 (02:11 +0100)
modules/access_output/file.c

index 4d137b5..6a3cd86 100644 (file)
@@ -116,11 +116,15 @@ static int Open( vlc_object_t *p_this )
 
     if( !strcmp( p_access->psz_path, "-" ) )
     {
+#ifndef UNDER_CE
 #ifdef WIN32
         setmode (fileno (stdout), O_BINARY);
 #endif
         fd = dup (fileno (stdout));
         msg_Dbg( p_access, "using stdout" );
+#else
+#warning stdout is not supported on Windows Mobile, but may be used on Windows CE
+#endif
     }
     else
     {