diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-23 18:07:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-23 18:07:38 +0000 |
commit | 33fc4a63071c03ad46636b345a814e7e6d8f4ae0 (patch) | |
tree | fd13574895afeebf6d0a17f2bcfdd5b985a231d9 /src/evalfunc.c | |
parent | dd2dfb3cb00d47d2e8248c4e9d2cdf51e1574b79 (diff) | |
download | vim-git-33fc4a63071c03ad46636b345a814e7e6d8f4ae0.tar.gz |
patch 8.2.4457: the GPM library can only be linked staticallyv8.2.4457
Problem: The GPM library can only be linked statically.
Solution: Make it possible to load the GPM library dynamically. (Damien)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index cea002f11..eb42269cf 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -5786,7 +5786,7 @@ f_has(typval_T *argvars, typval_T *rettv) #endif }, {"mouse_gpm", -#if (defined(UNIX) || defined(VMS)) && defined(FEAT_MOUSE_GPM) +#if (defined(UNIX) || defined(VMS)) && defined(FEAT_MOUSE_GPM) && !defined(DYNAMIC_GPM) 1 #else 0 @@ -6392,6 +6392,10 @@ f_has(typval_T *argvars, typval_T *rettv) else if (STRICMP(name, "terminal") == 0) n = terminal_enabled(); #endif +#ifdef DYNAMIC_GPM + else if (STRICMP(name, "mouse_gpm") == 0) + n = gpm_available(); +#endif } // features not in has_list[] |