[vlc-devel] [vlc-commits] demux: ts: include time.h

Rémi Denis-Courmont remi at remlab.net
Sat Aug 16 09:13:21 CEST 2014


Le samedi 16 août 2014, 08:44:05 KO Myung-Hun a écrit :
> vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sat Aug 16 15:32:50
> 2014 +0900| [7e419a7f2eddaf30cfd98c8b4b9ae4088cff6651] | committer:
> Jean-Baptiste Kempf
> 
> demux: ts: include time.h
> 
> This fixes the following compilation error.
> 
> -----
>   CC       demux/libts_plugin_la-ts.lo
> demux/ts.c: In function 'EITCallBack':
> demux/ts.c:3114:13: error: implicit declaration of function 'time'
> [-Werror=implicit-function-declaration] time_t timer = time( NULL );
>              ^
> demux/ts.c:3115:13: error: implicit declaration of function 'difftime'
> [-Werror=implicit-function-declaration] int64_t diff = difftime( mktime(
> localtime( &timer ) ), ^

More importantly, since when are localtime() and gmtime() allowed in the VLC 
code base?

Someone revert 4fa1af77 before I do it myself.


-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list