aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-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
}