[PATCH 1/3] arch: keep cygwin specifics with i386/x86-64 specifics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No functional changes but it will help to reorganize
this code into arch-specific sections.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 target.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/target.c b/target.c
index 90097818f..17bdb2544 100644
--- a/target.c
+++ b/target.c
@@ -79,11 +79,15 @@ void init_target(void)
 	}
 
 	switch (arch_mach) {
+	case MACH_I386:
 	case MACH_X86_64:
+#if defined(__CYGWIN__)
+		wchar_ctype = &ushort_ctype;
+		break;
+#endif
 		if (arch_m64 == ARCH_LP64)
 			break;
 		/* fall through */
-	case MACH_I386:
 	case MACH_M68K:
 	case MACH_SPARC32:
 	case MACH_PPC32:
@@ -172,9 +176,6 @@ void init_target(void)
 		break;
 	}
 
-#if defined(__CYGWIN__)
-	wchar_ctype = &ushort_ctype;
-#endif
 #if defined(__FreeBSD__) || defined(__APPLE__)
 	wint_ctype = &int_ctype;
 #endif
-- 
2.24.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux