[v3,4/7] Update string to float128 functions to use bits/types/locale_t.h

Message ID 1498221206-26864-5-git-send-email-gftg@linux.vnet.ibm.com
State Dropped
Headers

Commit Message

Gabriel F T Gomes June 23, 2017, 12:33 p.m. UTC
  New since v2:

  - This patch updates float128 files to reflect new code on master
    (detected after a rebase).

-- 8< --
The header xlocale.h was renamed to bits/types/locale_t.h.  This patch
updates the string to float128 conversion functions to include the new
header.

Tested for powerpc64le and s390x.

	* sysdeps/ieee754/float128/strtof128_l.c: Include
	bits/types/locale_t.h instead of xlocale.h.
	* sysdeps/ieee754/float128/wcstof128.c: Likewise.
	* sysdeps/ieee754/float128/wcstof128_l.c: Likewise.
---
 sysdeps/ieee754/float128/strtof128_l.c | 2 +-
 sysdeps/ieee754/float128/wcstof128.c   | 2 +-
 sysdeps/ieee754/float128/wcstof128_l.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
  

Comments

Gabriel F T Gomes June 23, 2017, 12:57 p.m. UTC | #1
On Fri, 23 Jun 2017 09:33:23 -0300
"Gabriel F. T. Gomes" <gftg@linux.vnet.ibm.com> wrote:

> New since v2:
> 
>   - This patch updates float128 files to reflect new code on master
>     (detected after a rebase).

I just noticed that this has already been fixed on master by commit ID
33711da4e90f.  Please disregard this patch.
  

Patch

diff --git a/sysdeps/ieee754/float128/strtof128_l.c b/sysdeps/ieee754/float128/strtof128_l.c
index d3d55ea..a541d60 100644
--- a/sysdeps/ieee754/float128/strtof128_l.c
+++ b/sysdeps/ieee754/float128/strtof128_l.c
@@ -16,7 +16,7 @@ 
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <xlocale.h>
+#include <bits/types/locale_t.h>
 
 /* Bring in potential typedef for _Float128 early for declaration below.  */
 #include <bits/floatn.h>
diff --git a/sysdeps/ieee754/float128/wcstof128.c b/sysdeps/ieee754/float128/wcstof128.c
index 1d6326d..49aa4d6 100644
--- a/sysdeps/ieee754/float128/wcstof128.c
+++ b/sysdeps/ieee754/float128/wcstof128.c
@@ -17,7 +17,7 @@ 
    <http://www.gnu.org/licenses/>.  */
 
 #include <stddef.h>
-#include <xlocale.h>
+#include <bits/types/locale_t.h>
 
 #define	USE_WIDE_CHAR	1
 
diff --git a/sysdeps/ieee754/float128/wcstof128_l.c b/sysdeps/ieee754/float128/wcstof128_l.c
index 2df7184..b295087 100644
--- a/sysdeps/ieee754/float128/wcstof128_l.c
+++ b/sysdeps/ieee754/float128/wcstof128_l.c
@@ -17,7 +17,7 @@ 
    <http://www.gnu.org/licenses/>.  */
 
 #include <stddef.h>
-#include <xlocale.h>
+#include <bits/types/locale_t.h>
 
 
 #define	USE_WIDE_CHAR	1