[vlc-devel] access_out_file: reorder to avoid forward declarations

KO Myung-Hun komh78 at gmail.com
Wed May 27 03:25:42 CEST 2015


Hi/2.

Rémi Denis-Courmont wrote:
> vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 26 22:59:12 2015 +0300| [e7a4311db421cdc6f61114f24cc875cddf9de480] | committer: Rémi Denis-Courmont
> 
> access_out_file: reorder to avoid forward declarations
> 
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7a4311db421cdc6f61114f24cc875cddf9de480
> ---
> 
>  modules/access_output/file.c |  242 +++++++++++++++++++-----------------------
>  1 file changed, 110 insertions(+), 132 deletions(-)
> 
> diff --git a/modules/access_output/file.c b/modules/access_output/file.c
> index 846a0b3..080ef89 100644
> --- a/modules/access_output/file.c
> +++ b/modules/access_output/file.c
> @@ -46,61 +46,98 @@
>  #include <vlc_strings.h>
>  #include <vlc_dialog.h>
>  
> -#if defined( _WIN32 ) || defined( __OS2__ )
> -#   include <io.h>
> -#endif
> -

This breaks OS/2 build.

-----
  CC       access_output/file.lo
access_output/file.c: In function 'Open':
access_output/file.c:288:9: error: implicit declaration of function
'setmode' [-Werror=implicit-function-declaration]
         setmode (STDOUT_FILENO, O_BINARY);
         ^
cc1.exe: some warnings being treated as errors
make.exe[4]: *** [access_output/file.lo] Error 1
-----

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr




More information about the vlc-devel mailing list