remove HAVE_WCHAR_H

This commit is contained in:
oni-link 2014-04-01 13:54:36 +02:00 committed by Thiago de Arruda
parent 77433de0ca
commit 9d2975efad
4 changed files with 3 additions and 16 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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. */