diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/system.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Src/system.h b/Src/system.h index 2f542981b..8449b1bd6 100644 --- a/Src/system.h +++ b/Src/system.h @@ -52,19 +52,20 @@ # undef HAVE_SYS_UTSNAME_H #endif -#if defined(ZSH_CURSES_SOURCE) && defined(ZSH_CURSES_NEEDS_XOPEN) -# define _XOPEN_SOURCE_EXTENDED 1 -#else -# ifdef MULTIBYTE_SUPPORT +#ifndef ZSH_NO_XOPEN +# ifdef ZSH_CURSES_SOURCE +# define _XOPEN_SOURCE_EXTENDED 1 +# else +# ifdef MULTIBYTE_SUPPORT /* * Needed for wcwidth() which is part of XSI. * Various other uses of the interface mean we can't get away with just * _XOPEN_SOURCE. */ -/*# define _XOPEN_SOURCE 1*/ -# define _XOPEN_SOURCE_EXTENDED 1 -# endif -#endif +# define _XOPEN_SOURCE_EXTENDED 1 +# endif /* MULTIBYTE_SUPPORT */ +# endif /* ZSH_CURSES_SOURCE */ +#endif /* ZSH_NO_XOPEN */ /* * Solaris by default zeroes all elements of the tm structure in |