mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
remove HAVE_WCHAR_H
This commit is contained in:
parent
77433de0ca
commit
9d2975efad
@ -85,7 +85,6 @@
|
||||
#define HAVE_UTIME 1
|
||||
#define HAVE_UTIME_H 1
|
||||
#define HAVE_UTIMES 1
|
||||
#define HAVE_WCHAR_H 1
|
||||
#define HAVE_WCTYPE_H 1
|
||||
#cmakedefine HAVE_WORKING_LIBINTL
|
||||
#define RETSIGTYPE void
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <wctype.h>
|
||||
#include <wchar.h> // for towupper() and towlower()
|
||||
|
||||
#include "vim.h"
|
||||
#include "charset.h"
|
||||
@ -19,9 +20,6 @@
|
||||
|
||||
static int win_chartabsize(win_T *wp, char_u *p, colnr_T col);
|
||||
|
||||
#if defined(HAVE_WCHAR_H)
|
||||
# include <wchar.h> // for towupper() and towlower()
|
||||
#endif // if defined(HAVE_WCHAR_H)
|
||||
static int win_nolbr_chartabsize(win_T *wp, char_u *s, colnr_T col,
|
||||
int *headp);
|
||||
|
||||
|
10
src/mbyte.c
10
src/mbyte.c
@ -78,6 +78,7 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
# include <wchar.h>
|
||||
|
||||
#include "vim.h"
|
||||
#include "mbyte.h"
|
||||
@ -95,15 +96,6 @@
|
||||
|
||||
# define WINBYTE BYTE
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef HAVE_WCHAR_H
|
||||
# include <wchar.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
static int enc_canon_search(char_u *name);
|
||||
static int dbcs_char2len(int c);
|
||||
static int dbcs_char2bytes(int c, char_u *buf);
|
||||
|
@ -964,9 +964,7 @@ static void close_spellbuf(buf_T *buf);
|
||||
* differ from what the .spl file uses.
|
||||
* These must not be called with negative number!
|
||||
*/
|
||||
# if defined(HAVE_WCHAR_H)
|
||||
# include <wchar.h> /* for towupper() and towlower() */
|
||||
# endif
|
||||
#include <wchar.h> /* for towupper() and towlower() */
|
||||
/* Multi-byte implementation. For Unicode we can call utf_*(), but don't do
|
||||
* that for ASCII, because we don't want to use 'casemap' here. Otherwise use
|
||||
* the "w" library function for characters above 255. */
|
||||
|
Loading…
Reference in New Issue
Block a user