]> granicus.if.org Git - vim/commitdiff
Include wchar.h in charset.c for towupper().
authorBram Moolenaar <Bram@vim.org>
Thu, 12 Aug 2010 18:17:02 +0000 (20:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 12 Aug 2010 18:17:02 +0000 (20:17 +0200)
src/charset.c

index 87ad3033329c3135edd2ad7ba65ee1ff51e57dc1..21fb4e52c5622f02715a20872027ba21db356c7d 100644 (file)
@@ -14,6 +14,9 @@ static int win_chartabsize __ARGS((win_T *wp, char_u *p, colnr_T col));
 #endif
 
 #ifdef FEAT_MBYTE
+# if defined(HAVE_WCHAR_H)
+#  include <wchar.h>       /* for towupper() and towlower() */
+# endif
 static int win_nolbr_chartabsize __ARGS((win_T *wp, char_u *s, colnr_T col, int *headp));
 #endif