0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1381: ACCESS_ names have a conflict with on some systems

Problem:    ACCESS_ names have a conflict with on some systems.
Solution:   Rename by prepending VIM_. (Ola Söder, closes #12105)
This commit is contained in:
=?UTF-8?q?Ola=20S=C3=B6der?=
2023-03-05 13:12:32 +00:00
committed by Bram Moolenaar
parent 5fb78c3fa5
commit d8742476d1
5 changed files with 11 additions and 9 deletions

View File

@@ -148,8 +148,8 @@ add_member(
return FAIL;
ocmember_T *m = ((ocmember_T *)gap->ga_data) + gap->ga_len;
m->ocm_name = vim_strnsave(varname, varname_end - varname);
m->ocm_access = has_public ? ACCESS_ALL
: *varname == '_' ? ACCESS_PRIVATE : ACCESS_READ;
m->ocm_access = has_public ? VIM_ACCESS_ALL
: *varname == '_' ? VIM_ACCESS_PRIVATE : VIM_ACCESS_READ;
m->ocm_type = type;
if (init_expr != NULL)
m->ocm_init = init_expr;