diff mbox series

[3/8] arch: keep BSD & Darwin specifics with i386/x86-64 specifics

Message ID 20191115011355.53495-4-luc.vanoostenryck@gmail.com (mailing list archive)
State Superseded, archived
Headers show
Series Miscellaneous arch specific fixes | expand

Commit Message

Luc Van Oostenryck Nov. 15, 2019, 1:13 a.m. UTC
Without more testing, the specific types for wint_t & int64_t
on FreeBSD & Darwin are only valid for i386/x86-64.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 target.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/target.c b/target.c
index acafbd929..647817a22 100644
--- a/target.c
+++ b/target.c
@@ -83,6 +83,13 @@  void init_target(void)
 		wchar_ctype = &long_ctype;
 		/* fall through */
 	case MACH_X86_64:
+#if defined(__APPLE__)
+		int64_ctype = &llong_ctype;
+		uint64_ctype = &ullong_ctype;
+#endif
+#if defined(__FreeBSD__) || defined(__APPLE__)
+		wint_ctype = &int_ctype;
+#endif
 		break;
 	case MACH_M68K:
 	case MACH_SPARC32:
@@ -193,11 +200,4 @@  void init_target(void)
 #if defined(__CYGWIN__)
 	wchar_ctype = &ushort_ctype;
 #endif
-#if defined(__FreeBSD__) || defined(__APPLE__)
-	wint_ctype = &int_ctype;
-#endif
-#if defined(__APPLE__)
-	int64_ctype = &llong_ctype;
-	uint64_ctype = &ullong_ctype;
-#endif
 }