Mercurial > vim
diff src/evalfunc.c @ 15677:772e72b046a3 v8.1.0846
patch 8.1.0846: not easy to recognize the system Vim runs on
commit https://github.com/vim/vim/commit/39536dd557e847e80572044c2be319db5886abe3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 29 22:58:21 2019 +0100
patch 8.1.0846: not easy to recognize the system Vim runs on
Problem: Not easy to recognize the system Vim runs on.
Solution: Add more items to the features list. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3855)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Jan 2019 23:00:16 +0100 |
parents | 6f1c7e9a6393 |
children | cb501b3c9fb5 |
line wrap: on
line diff
--- 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",