aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-11 11:50:09 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-15 02:24:24 +0100
commit47628528e22cc44e74604e45073c9e022b0472ca (patch)
treea140ec7ed2f1fc178460f0b65ca962e4bb4108cb
parentc67fc56d34f0446b1fa9c748381011cce1c3e017 (diff)
downloadsparse-dev-47628528e22cc44e74604e45073c9e022b0472ca.tar.gz
arch: keep cygwin specifics with i386/x86-64 specifics
No functional changes but it will help to reorganize this code into arch-specific sections. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--target.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/target.c b/target.c
index 647817a2..9ce21272 100644
--- a/target.c
+++ b/target.c
@@ -90,6 +90,9 @@ void init_target(void)
#if defined(__FreeBSD__) || defined(__APPLE__)
wint_ctype = &int_ctype;
#endif
+#if defined(__CYGWIN__)
+ wchar_ctype = &ushort_ctype;
+#endif
break;
case MACH_M68K:
case MACH_SPARC32:
@@ -196,8 +199,4 @@ void init_target(void)
pointer_alignment = 8;
break;
}
-
-#if defined(__CYGWIN__)
- wchar_ctype = &ushort_ctype;
-#endif
}