diff src/arabic.c @ 9403:9b048dced116 v7.4.1983

commit https://github.com/vim/vim/commit/75464dc434c43efac60e8bfd9bec2a8b736407e9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 2 20:27:50 2016 +0200 patch 7.4.1983 Problem: farsi.c and arabic.c are included in a strange way. Solution: Build them like other files.
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Jul 2016 20:30:06 +0200
parents 83861277e6a3
children 4aead6a9b7a9
line wrap: on
line diff
--- a/src/arabic.c
+++ b/src/arabic.c
@@ -10,14 +10,13 @@
 /*
  * arabic.c: functions for Arabic language
  *
- * Included by main.c, when FEAT_ARABIC & FEAT_GUI is defined.
- *
- * --
- *
  * Author: Nadim Shaikli & Isam Bayazidi
- *
  */
 
+#include "vim.h"
+
+#if defined(FEAT_ARABIC) || defined(PROTO)
+
 static int  A_is_a(int cur_c);
 static int  A_is_s(int cur_c);
 static int  A_is_f(int cur_c);
@@ -1148,3 +1147,5 @@ A_is_special(int c)
 {
     return (c == a_HAMZA || c == a_s_HAMZA);
 }
+
+#endif /* FEAT_ARABIC */