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

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