diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 08:01:55 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-08 08:01:55 +0000 |
commit | 9e09cd236ce2be94ed828668c2925a25ce81616d (patch) | |
tree | 54205f64411c22ef87b871e28f9f42f5c3d81cd5 /libgfortran/io | |
parent | a391f3306a233b998286c7dc68d8d4e8391aba52 (diff) | |
download | gcc-9e09cd236ce2be94ed828668c2925a25ce81616d.tar.gz |
2010-03-08 Kai TIetz <kai.tietz@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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io')
-rw-r--r-- | libgfortran/io/read.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgfortran/io/read.c b/libgfortran/io/read.c index 03046b943b9..43f4b76b580 100644 --- a/libgfortran/io/read.c +++ b/libgfortran/io/read.c @@ -144,25 +144,25 @@ convert_real (st_parameter_dt *dtp, void *dest, const char *buffer, int length) case 4: *((GFC_REAL_4*) dest) = #if defined(HAVE_STRTOF) - strtof (buffer, NULL); + gfc_strtof (buffer, NULL); #else - (GFC_REAL_4) strtod (buffer, NULL); + (GFC_REAL_4) gfc_strtod (buffer, NULL); #endif break; case 8: - *((GFC_REAL_8*) dest) = strtod (buffer, NULL); + *((GFC_REAL_8*) dest) = gfc_strtod (buffer, NULL); break; #if defined(HAVE_GFC_REAL_10) && defined (HAVE_STRTOLD) case 10: - *((GFC_REAL_10*) dest) = strtold (buffer, NULL); + *((GFC_REAL_10*) dest) = gfc_strtold (buffer, NULL); break; #endif #if defined(HAVE_GFC_REAL_16) && defined (HAVE_STRTOLD) case 16: - *((GFC_REAL_16*) dest) = strtold (buffer, NULL); + *((GFC_REAL_16*) dest) = gfc_strtold (buffer, NULL); break; #endif |