------- Comment #8 from ktietz at gcc dot gnu dot org 2010-03-06 07:21 ------- Created an attachment (id=20034) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20034&action=view) Patch about printf and POSIX float conversion
2010-03-06 Kai TIetz <kai.ti...@onevision.com> PR/42950 * libgfortran.h (_POSIX): Define if __MINGW32__ is defined. (gfc_printf): Define to gnu_printf for __MINGW32__ case, otherwise to __printf__. (gfc_strtof,gfc_strtod,gfc_strtold): Define for mingw case to POSIX compatible converter functions. (runtime_error): Use instead gfc_printf as formatter attribute name. (runtime_error_at): Likewise. (runtime_warning_at): Likewise. (st_printf): Likewise. * intrinsics/date_and_time.c (localtime_r): Undefine possible defined macro. (gmtime_r): Likewise. * io/read.c (convert_real): Use gfc_strtof, gfc_strtod, and gfc_strtold. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42950