0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 9.0.0781: workaround to rename "small" to "smallfont" is clumsy

Problem:    Workaround to rename "small" to "smallfont" is clumsy.
Solution:   Undefine "small" after including windows.h. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2022-10-17 14:51:36 +01:00
parent a1a46da87d
commit e6a16e9950
8 changed files with 31 additions and 25 deletions

View File

@@ -86,6 +86,10 @@
#endif
#ifndef PROTO
# include <windows.h>
// Weird: rpcndr.h defines "small" to "char", which causes trouble
#undef small
# ifndef SM_CXPADDEDBORDER
# define SM_CXPADDEDBORDER 92
# endif