1
0
forked from aniani/vim

patch 8.2.4457: the GPM library can only be linked statically

Problem:    The GPM library can only be linked statically.
Solution:   Make it possible to load the GPM library dynamically. (Damien)
This commit is contained in:
Bram Moolenaar
2022-02-23 18:07:38 +00:00
parent dd2dfb3cb0
commit 33fc4a6307
9 changed files with 101 additions and 8 deletions

View File

@@ -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
@@ -6391,6 +6391,10 @@ f_has(typval_T *argvars, typval_T *rettv)
#if defined(FEAT_TERMINAL) && defined(MSWIN)
else if (STRICMP(name, "terminal") == 0)
n = terminal_enabled();
#endif
#ifdef DYNAMIC_GPM
else if (STRICMP(name, "mouse_gpm") == 0)
n = gpm_available();
#endif
}