Skip to content

Commit bbbf56f

Browse files
eukarpovgithub-actions
authored andcommitted
Fix undefined reference to mingw (#10)
1 parent 22ed501 commit bbbf56f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libgfortran/libgfortran.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ extern float __strtof (const char *, char **);
6767
#define gfc_strtof __strtof
6868
extern double __strtod (const char *, char **);
6969
#define gfc_strtod __strtod
70+
71+
#if defined(__aarch64__)
72+
#define gfc_strtold strtold
73+
#else
7074
extern long double __strtold (const char *, char **);
7175
#define gfc_strtold __strtold
76+
#endif
77+
7278
#else
7379
#define gfc_strtof strtof
7480
#define gfc_strtod strtod

0 commit comments

Comments
 (0)