mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
remove HAVE_WCHAR_H
This commit is contained in:

committed by
Thiago de Arruda

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