0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.475

Problem:    Can't compile on a system where Xutf8SetWMProperties() is not in
            the X11 library.  Issue 265.
Solution:   Add a configure check.
This commit is contained in:
Bram Moolenaar
2014-10-11 14:47:26 +02:00
parent 2a9853925b
commit cbc246a331
5 changed files with 68 additions and 26 deletions

View File

@@ -1960,9 +1960,12 @@ get_x11_thing(get_title, test_only)
return retval;
}
/* Are Xutf8 functions available? Avoid error from old compilers. */
/* Xutf8 functions are not avaialble on older systems. Note that on some
* systems X_HAVE_UTF8_STRING may be defined in a header file but
* Xutf8SetWMProperties() is not in the X11 library. Configure checks for
* that and defines HAVE_XUTF8SETWMPROPERTIES. */
#if defined(X_HAVE_UTF8_STRING) && defined(FEAT_MBYTE)
# if X_HAVE_UTF8_STRING
# if X_HAVE_UTF8_STRING && HAVE_XUTF8SETWMPROPERTIES
# define USE_UTF8_STRING
# endif
#endif