diff options
Diffstat (limited to 'sysdeps/ieee754/float128/strtof128.c')
-rw-r--r-- | sysdeps/ieee754/float128/strtof128.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sysdeps/ieee754/float128/strtof128.c b/sysdeps/ieee754/float128/strtof128.c index 63cc80d58d..e82bff6b62 100644 --- a/sysdeps/ieee754/float128/strtof128.c +++ b/sysdeps/ieee754/float128/strtof128.c @@ -19,6 +19,13 @@ /* The actual implementation for all floating point sizes is in strtod.c. These macros tell it to produce the `_Float128' version, `strtof128'. */ +#include <bits/floatn.h> + +#if __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE +# define strtof64x __hide_strtof64x +# define wcstof64x __hide_wcstof64x +#endif + #define FLOAT _Float128 #define FLT FLT128 #ifdef USE_WIDE_CHAR @@ -32,3 +39,13 @@ #include <float128_private.h> #include <stdlib/strtod.c> + +#if __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE +# undef strtof64x +# undef wcstof64x +# ifdef USE_WIDE_CHAR +weak_alias (wcstof128, wcstof64x) +# else +weak_alias (strtof128, strtof64x) +# endif +#endif |