> > .\eval.c:
> > Warning W8065 .\eval.c 14642: Call to function 'round' with no prototype
> > in function f_round
> > Warning W8065 .\eval.c 17027: Call to function 'trunc' with no prototype
> > in function f_trunc

> As a workaround in eval.c you can simply replace
>       rettv->vval.v_float = round(f);
> with
>       rettv->vval.v_float = ceil(f + 0.5);
> and
>       rettv->vval.v_float = trunc(f);
> with
>       rettv->vval.v_float = ceil(f);

On Solaris, all three (round, trunc, ceil) are part of libmath.so, so
you need #include <math.h> and link with -lm.

-- 
        Vlad

Attachment: pgp8gPVlBc8nT.pgp
Description: PGP signature

Raspunde prin e-mail lui