arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-17.patch

147e83
commit 0cdddc25a47509262a9a55a343395971b492b0fa
147e83
Author: Steve Ellcey <sellcey@mips.com>
147e83
Date:   Thu May 1 10:22:35 2014 -0700
147e83
147e83
    2014-05-01  Steve Ellcey  <sellcey@mips.com>
147e83
    
147e83
            * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
147e83
            * iconv/gconv_simple.c (ONE_DIRECTION): Define.
147e83
            * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
147e83
            * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
147e83
147e83
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c
147e83
index 03fa5f2e2c771ebc..78c2421ecf77f198 100644
147e83
--- a/iconv/gconv_simple.c
147e83
+++ b/iconv/gconv_simple.c
147e83
@@ -68,6 +68,7 @@ __gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c)
147e83
 #define FROM_LOOP		internal_ucs4_loop
147e83
 #define TO_LOOP			internal_ucs4_loop /* This is not used.  */
147e83
 #define FUNCTION_NAME		__gconv_transform_internal_ucs4
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 static inline int
147e83
@@ -222,6 +223,7 @@ internal_ucs4_loop_single (struct __gconv_step *step,
147e83
 #define FROM_LOOP		ucs4_internal_loop
147e83
 #define TO_LOOP			ucs4_internal_loop /* This is not used.  */
147e83
 #define FUNCTION_NAME		__gconv_transform_ucs4_internal
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 static inline int
147e83
@@ -433,6 +435,7 @@ ucs4_internal_loop_single (struct __gconv_step *step,
147e83
 #define FROM_LOOP		internal_ucs4le_loop
147e83
 #define TO_LOOP			internal_ucs4le_loop /* This is not used.  */
147e83
 #define FUNCTION_NAME		__gconv_transform_internal_ucs4le
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 static inline int
147e83
@@ -590,6 +593,7 @@ internal_ucs4le_loop_single (struct __gconv_step *step,
147e83
 #define FROM_LOOP		ucs4le_internal_loop
147e83
 #define TO_LOOP			ucs4le_internal_loop /* This is not used.  */
147e83
 #define FUNCTION_NAME		__gconv_transform_ucs4le_internal
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 static inline int
147e83
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
147e83
index 527ef0380c999740..3384d520661f88ed 100644
147e83
--- a/iconv/skeleton.c
147e83
+++ b/iconv/skeleton.c
147e83
@@ -162,11 +162,6 @@
147e83
 # endif
147e83
 #endif
147e83
 
147e83
-#ifndef ONE_DIRECTION
147e83
-# define ONE_DIRECTION 0
147e83
-#endif
147e83
-
147e83
-
147e83
 /* How many bytes are needed at most for the from-charset.  */
147e83
 #ifndef MAX_NEEDED_FROM
147e83
 # define MAX_NEEDED_FROM	MIN_NEEDED_FROM
147e83
diff --git a/iconvdata/8bit-gap.c b/iconvdata/8bit-gap.c
147e83
index d2e4efc2b7ee9c4a..5139c4cef6ea8788 100644
147e83
--- a/iconvdata/8bit-gap.c
147e83
+++ b/iconvdata/8bit-gap.c
147e83
@@ -42,6 +42,7 @@ struct gap
147e83
 #define DEFINE_FINI		1
147e83
 #define MIN_NEEDED_FROM		1
147e83
 #define MIN_NEEDED_TO		4
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 /* First define the conversion function from the 8bit charset to UCS4.  */
147e83
diff --git a/iconvdata/8bit-generic.c b/iconvdata/8bit-generic.c
147e83
index 4757d18a1f4dc037..f9bb50cb3d8bc482 100644
147e83
--- a/iconvdata/8bit-generic.c
147e83
+++ b/iconvdata/8bit-generic.c
147e83
@@ -25,6 +25,7 @@
147e83
 #define DEFINE_FINI		1
147e83
 #define MIN_NEEDED_FROM		1
147e83
 #define MIN_NEEDED_TO		4
147e83
+#define ONE_DIRECTION		0
147e83
 
147e83
 
147e83
 /* First define the conversion function from the 8bit charset to UCS4.  */