Skip to content

Commit

Permalink
Fix undefined reference to mingw (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
eukarpov authored and github-actions committed Sep 22, 2024
1 parent 2f909ab commit d772e4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libgfortran/libgfortran.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ extern float __strtof (const char *, char **);
#define gfc_strtof __strtof
extern double __strtod (const char *, char **);
#define gfc_strtod __strtod

#if defined(__aarch64__)
#define gfc_strtold strtold
#else
extern long double __strtold (const char *, char **);
#define gfc_strtold __strtold
#endif

#else
#define gfc_strtof strtof
#define gfc_strtod strtod
Expand Down

0 comments on commit d772e4e

Please sign in to comment.