Message ID | 20191115012515.53725-2-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | make wchar_t be correct on Cygwin via cgcc | expand |
diff --git a/target.c b/target.c index 647817a22..9ce21272d 100644 --- a/target.c +++ b/target.c @@ -89,6 +89,9 @@ void init_target(void) #endif #if defined(__FreeBSD__) || defined(__APPLE__) wint_ctype = &int_ctype; +#endif +#if defined(__CYGWIN__) + wchar_ctype = &ushort_ctype; #endif break; case MACH_M68K: @@ -196,8 +199,4 @@ void init_target(void) pointer_alignment = 8; break; } - -#if defined(__CYGWIN__) - wchar_ctype = &ushort_ctype; -#endif }
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> --- target.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)