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

patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE

Problem:  VMS: type warning with $XDG_VIMRC_FILE
          (Zoltan Arpadffy)
Solution: add explicit (char_u *) type cast to mch_getenv() call

fixes: #16335

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-12-30 10:10:01 +01:00
parent 2e1f757f7b
commit 80ed8b8761
2 changed files with 3 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ typedef struct dsc$descriptor DESC;
#endif
#ifndef XDG_VIMRC_FILE
# define XDG_VIMRC_FILE (mch_getenv("XDG_CONFIG_HOME") \
# define XDG_VIMRC_FILE (mch_getenv((char_u *)"XDG_CONFIG_HOME") \
? "$XDG_CONFIG_HOME/vim/vimrc" \
: "~/.config/vim/vimrc")
#endif