[Patch] ../../../src/libgfortran/io/write.c:713: error: conflicting types for 'itoa'

Janne Blomqvist blomqvist.janne@gmail.com
Mon Apr 13 08:36:00 GMT 2009


On Mon, Apr 13, 2009 at 11:25, Danny Smith <dansmister@gmail.com> wrote:
> This change
> 2009-04-08  Janne Blomqvist  <jb@gcc.gnu.org>
> <snip>
>        * io/write.c (itoa): Move from runtime/error.c:gfc_itoa, rename,
>        make static.
>
> breaks gfortran build on on mingw32.
> mingw32 declares an external function 'itoa'  with conficting
> prototype in <stdlib.h>
>
> Renaming  itoa back to gfc_itoa and adjusting callers  fixes.

Ok. Please also add a note about this to the comment in write.c;
Usually we use gfc_* names only for non-static symbols.



-- 
Janne Blomqvist



More information about the Gcc-patches mailing list