Mercurial > vim
changeset 17567:b25f81a18616 v8.1.1781
patch 8.1.1781: Amiga: no builtin OS readable version info
commit https://github.com/vim/vim/commit/70576f70f789d6161068fbe126f29ad976e029e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 31 20:40:08 2019 +0200
patch 8.1.1781: Amiga: no builtin OS readable version info
Problem: Amiga: no builtin OS readable version info.
Solution: Add a "version" variable. (Ola S?der, closes https://github.com/vim/vim/issues/4753)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 31 Jul 2019 20:45:07 +0200 |
parents | 132008ac886d |
children | 4a005384ea43 |
files | src/os_amiga.c src/version.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -14,6 +14,7 @@ */ #include "vim.h" +#include "version.h" #ifdef Window # undef Window /* Amiga has its own Window definition */ @@ -108,6 +109,17 @@ int dos2 = FALSE; /* Amiga DOS 2.0 #endif int size_set = FALSE; /* set to TRUE if window size was set */ +#ifdef __GNUC__ +static char version[] __attribute__((used)) = + "\0$VER: Vim " + VIM_VERSION_MAJOR_STR "." + VIM_VERSION_MINOR_STR +# ifdef PATCHLEVEL + "." PATCHLEVEL +# endif + ; +#endif + void win_resize_on(void) {