summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-29 22:58:21 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-29 22:58:21 +0100
commit39536dd557e847e80572044c2be319db5886abe3 (patch)
treea9223044558edf150a07d0fde3f8259c0a655561 /src/evalfunc.c
parent2a4857a1fcf1d188e5b985ac21bcfc532eddde94 (diff)
downloadvim-git-39536dd557e847e80572044c2be319db5886abe3.tar.gz
patch 8.1.0846: not easy to recognize the system Vim runs onv8.1.0846
Problem: Not easy to recognize the system Vim runs on. Solution: Add more items to the features list. (Ozaki Kiichi, closes #3855)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 874e3a66d..c7ba6f308 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6118,6 +6118,15 @@ f_has(typval_T *argvars, typval_T *rettv)
#ifdef __BEOS__
"beos",
#endif
+#if defined(BSD) && !defined(MACOS_X)
+ "bsd",
+#endif
+#ifdef hpux
+ "hpux",
+#endif
+#ifdef __linux__
+ "linux",
+#endif
#ifdef MACOS_X
"mac", /* Mac OS X (and, once, Mac OS Classic) */
"osx", /* Mac OS X */
@@ -6129,6 +6138,11 @@ f_has(typval_T *argvars, typval_T *rettv)
#ifdef __QNX__
"qnx",
#endif
+#ifdef SUN_SYSTEM
+ "sun",
+#else
+ "moon",
+#endif
#ifdef UNIX
"unix",
#endif
@@ -6158,7 +6172,7 @@ f_has(typval_T *argvars, typval_T *rettv)
#endif
"autocmd",
#ifdef FEAT_AUTOCHDIR
- "autochdir",
+ "autochdir",
#endif
#ifdef FEAT_AUTOSERVERNAME
"autoservername",