[MPlayer-dev-eng] missing declaration for shipped setenv

Gianluigi Tiesi mplayer at netfarm.it
Wed May 18 04:58:09 CEST 2011


On Wed, May 18, 2011 at 04:41:34AM +0200, Gianluigi Tiesi wrote:
> Hi,
> 
> it was working some time ago,
> mingw32 misses setenv, and mplayer ships osdep/setenv.c
> but no one declares it so the compilation fails:
> 
> libao2/ao_sdl.c: In function 'init':
> libao2/ao_sdl.c:145: error: implicit declaration of function 'setenv'

it comes from -Werror-implicit-function-declaration

also libavformat/utils.c plays with def/undef of fprintf so I get a lot of:

utils.c:3484: error: implicit declaration of function 'fprintf'
utils.c:3484: warning: incompatible implicit declaration of built-in function 'fprintf'

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/


More information about the MPlayer-dev-eng mailing list