mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
24862: _XOPEN_SOURCE needed for wcwidth()
This commit is contained in:
parent
2cec7aae44
commit
e210f8d614
2 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2008-04-22 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 24862: Src/system.h: #define _XOPEN_SOURCE if needed to
|
||||
get wcwidth().
|
||||
|
||||
* 24861: configure.ac, Src/builtin.c, Src/compat.c, Src/prompt.c,
|
||||
Src/utils.c, Src/zsh.h, Src/zle/complist.c, Src/Zle/zle_misc.c
|
||||
(slightly rewritten), Src/zle/zle_refresh.c, Src/Zle/zle_tricky.c:
|
||||
|
|
|
|||
|
|
@ -53,7 +53,12 @@
|
|||
#endif
|
||||
|
||||
#if defined(ZSH_CURSES_SOURCE) && defined(ZSH_CURSES_NEEDS_XOPEN)
|
||||
#define _XOPEN_SOURCE_EXTENDED 1
|
||||
# define _XOPEN_SOURCE_EXTENDED 1
|
||||
#else
|
||||
# ifdef MULTIBYTE_SUPPORT
|
||||
/* Needed for wcwidth() which is part of XSI */
|
||||
# define _XOPEN_SOURCE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue