<URL: http://bugs.freeciv.org/Ticket/Display.html?id=34129 >

> [EMAIL PROTECTED] - Sa 20. Jan 2007, 11:05:02]:
> 
> On 1/20/07, Christian Prochaska <[EMAIL PROTECTED]> wrote:
> >
> > > [EMAIL PROTECTED] - Sa 20. Jan 2007, 00:49:16]:
> > >
> > > cc1: warnings being treated as errors
> > > ../../../src.patched/client/gui-sdl/widget_scrollbar.c: In function
> > > 'scroll_mouse_motion_handler':
> > > ../../../src.patched/client/gui-sdl/widget_scrollbar.c:960: warning:
> > > implicit declaration of function 'round'
> > > ../../../src.patched/client/gui-sdl/widget_scrollbar.c:960: warning:
> > > incompatible implicit declaration of built-in function 'round'
> > >
> > Patch attached.
> 
>  I'm still getting same error.
> 
> 
>  - ML
> 

I have no idea then. According to the glibc manual the prototype of the
round() function is "double round (double x)" and it is said to be
declared in math.h. On my Debian testing system it's actually declared
in bits/mathcalls.h which is included by math.h and it needs
__USE_ISOC99 to be defined which is the case when _GNU_SOURCE is defined
. Perhaps a compiler problem?


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to