aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-11 11:50:09 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-14 01:40:57 +0100
commitc67fc56d34f0446b1fa9c748381011cce1c3e017 (patch)
tree4b9a6cc11f688cef2ab0ebf4438a540149638721
parentecf398614bac4ef197f0da4cf160aba32efe048c (diff)
downloadsparse-c67fc56d34f0446b1fa9c748381011cce1c3e017.tar.gz
arch: keep BSD & Darwin specifics with i386/x86-64 specifics
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>
-rw-r--r--target.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/target.c b/target.c
index acafbd92..647817a2 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
}